]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/reiser4-sync_inodes
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / reiser4-sync_inodes
CommitLineData
2cb7cef9
BS
1From: ReiserFS Development <reiserfs-devel@vger.namesys.com>
2Subject: [PATCH] vfs: Add ->sync_inodes super operation for reiser4
3
4 This patch adds the ->sync_inodes superblock operation for use with reiser4.
5
6 FIle systems without this operation will still use the generic implementation.
7
8Acked-by: Jeff Mahoney <jeffm@suse.com>
9
10---
11 fs/fs-writeback.c | 5 ++++-
12 include/linux/fs.h | 2 ++
13 2 files changed, 6 insertions(+), 1 deletion(-)
14
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)
20 {
21- generic_sync_sb_inodes(sb, wbc);
22+ if (sb->s_op->sync_inodes)
23+ sb->s_op->sync_inodes(sb, wbc);
24+ else
25+ generic_sync_sb_inodes(sb, wbc);
26 }
27
28 /*
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 *);
34
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 *);
39 #ifdef CONFIG_QUOTA