1 From: ReiserFS Development <reiserfs-devel@vger.namesys.com>
2 Subject: [PATCH] vfs: Add ->sync_inodes super operation for reiser4
4 This patch adds the ->sync_inodes superblock operation for use with reiser4.
6 FIle systems without this operation will still use the generic implementation.
8 Acked-by: Jeff Mahoney <jeffm@suse.com>
11 fs/fs-writeback.c | 5 ++++-
12 include/linux/fs.h | 2 ++
13 2 files changed, 6 insertions(+), 1 deletion(-)
15 --- a/fs/fs-writeback.c
16 +++ b/fs/fs-writeback.c
17 @@ -575,7 +575,10 @@ EXPORT_SYMBOL_GPL(generic_sync_sb_inodes
18 static void sync_sb_inodes(struct super_block *sb,
19 struct writeback_control *wbc)
21 - generic_sync_sb_inodes(sb, wbc);
22 + if (sb->s_op->sync_inodes)
23 + sb->s_op->sync_inodes(sb, wbc);
25 + generic_sync_sb_inodes(sb, wbc);
29 --- a/include/linux/fs.h
30 +++ b/include/linux/fs.h
31 @@ -1332,6 +1332,8 @@ struct super_operations {
32 void (*clear_inode) (struct inode *);
33 void (*umount_begin) (struct super_block *);
35 + void (*sync_inodes) (struct super_block *sb,
36 + struct writeback_control *wbc);
37 int (*show_options)(struct seq_file *, struct vfsmount *);
38 int (*show_stats)(struct seq_file *, struct vfsmount *);