diff options
| -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, |
