diff options
author | Christoph Hellwig <hch@lst.de> | 2009-06-08 04:04:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:15 -0400 |
commit | 58bc5bbb873eb5d86126a3fd3ff02aaa69ec15d0 (patch) | |
tree | ecc9df2d1205d031cdca77f0d2fb4cd588621f3e /fs | |
parent | f83d6d46e7adf241a064a4a425e5cd8a8fd8925f (diff) |
hfs: add ->sync_fs
Add a ->sync_fs method for data integrity syncs.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/hfs/super.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 3aac41751030..6f833dc8e910 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c | |||
@@ -58,6 +58,16 @@ static void hfs_write_super(struct super_block *sb) | |||
58 | unlock_super(sb); | 58 | unlock_super(sb); |
59 | } | 59 | } |
60 | 60 | ||
61 | static int hfs_sync_fs(struct super_block *sb, int wait) | ||
62 | { | ||
63 | lock_super(sb); | ||
64 | hfs_mdb_commit(sb); | ||
65 | sb->s_dirt = 0; | ||
66 | unlock_super(sb); | ||
67 | |||
68 | return 0; | ||
69 | } | ||
70 | |||
61 | /* | 71 | /* |
62 | * hfs_put_super() | 72 | * hfs_put_super() |
63 | * | 73 | * |
@@ -172,6 +182,7 @@ static const struct super_operations hfs_super_operations = { | |||
172 | .clear_inode = hfs_clear_inode, | 182 | .clear_inode = hfs_clear_inode, |
173 | .put_super = hfs_put_super, | 183 | .put_super = hfs_put_super, |
174 | .write_super = hfs_write_super, | 184 | .write_super = hfs_write_super, |
185 | .sync_fs = hfs_sync_fs, | ||
175 | .statfs = hfs_statfs, | 186 | .statfs = hfs_statfs, |
176 | .remount_fs = hfs_remount, | 187 | .remount_fs = hfs_remount, |
177 | .show_options = hfs_show_options, | 188 | .show_options = hfs_show_options, |