Add a ->sync_fs method for data integrity syncs. Signed-off-by: Christoph Hellwig <hch@xxxxxx> Index: vfs-2.6/fs/hfs/super.c =================================================================== --- vfs-2.6.orig/fs/hfs/super.c 2009-06-05 16:15:48.967939658 +0200 +++ vfs-2.6/fs/hfs/super.c 2009-06-05 16:16:53.655939519 +0200 @@ -58,6 +58,16 @@ static void hfs_write_super(struct super 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 .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, -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html