Commit 58bc5bbb authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro

hfs: add ->sync_fs

Add a ->sync_fs method for data integrity syncs.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f83d6d46
...@@ -58,6 +58,16 @@ static void hfs_write_super(struct super_block *sb) ...@@ -58,6 +58,16 @@ static void hfs_write_super(struct super_block *sb)
unlock_super(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() * hfs_put_super()
* *
...@@ -172,6 +182,7 @@ static const struct super_operations hfs_super_operations = { ...@@ -172,6 +182,7 @@ static const struct super_operations hfs_super_operations = {
.clear_inode = hfs_clear_inode, .clear_inode = hfs_clear_inode,
.put_super = hfs_put_super, .put_super = hfs_put_super,
.write_super = hfs_write_super, .write_super = hfs_write_super,
.sync_fs = hfs_sync_fs,
.statfs = hfs_statfs, .statfs = hfs_statfs,
.remount_fs = hfs_remount, .remount_fs = hfs_remount,
.show_options = hfs_show_options, .show_options = hfs_show_options,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment