From: ReiserFS Development Subject: [PATCH] vfs: Add ->sync_inodes super operation for reiser4 This patch adds the ->sync_inodes superblock operation for use with reiser4. FIle systems without this operation will still use the generic implementation. Acked-by: Jeff Mahoney --- fs/fs-writeback.c | 5 ++++- include/linux/fs.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -575,7 +575,10 @@ EXPORT_SYMBOL_GPL(generic_sync_sb_inodes static void sync_sb_inodes(struct super_block *sb, struct writeback_control *wbc) { - generic_sync_sb_inodes(sb, wbc); + if (sb->s_op->sync_inodes) + sb->s_op->sync_inodes(sb, wbc); + else + generic_sync_sb_inodes(sb, wbc); } /* --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1332,6 +1332,8 @@ struct super_operations { void (*clear_inode) (struct inode *); void (*umount_begin) (struct super_block *); + void (*sync_inodes) (struct super_block *sb, + struct writeback_control *wbc); int (*show_options)(struct seq_file *, struct vfsmount *); int (*show_stats)(struct seq_file *, struct vfsmount *); #ifdef CONFIG_QUOTA