From: Christoph Hellwig Date: Mon, 8 Jun 2009 08:04:54 +0000 (+0200) Subject: hfs: add ->sync_fs X-Git-Tag: v2.6.31-rc1~375^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58bc5bbb873eb5d86126a3fd3ff02aaa69ec15d0;p=platform%2Fkernel%2Flinux-3.10.git hfs: add ->sync_fs Add a ->sync_fs method for data integrity syncs. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 3aac417..6f833dc 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c @@ -58,6 +58,16 @@ static void hfs_write_super(struct super_block *sb) unlock_super(sb); } +static int hfs_sync_fs(struct super_block *sb, int wait) +{ + lock_super(sb); + hfs_mdb_commit(sb); + sb->s_dirt = 0; + unlock_super(sb); + + return 0; +} + /* * hfs_put_super() * @@ -172,6 +182,7 @@ static const struct super_operations hfs_super_operations = { .clear_inode = hfs_clear_inode, .put_super = hfs_put_super, .write_super = hfs_write_super, + .sync_fs = hfs_sync_fs, .statfs = hfs_statfs, .remount_fs = hfs_remount, .show_options = hfs_show_options,