diff options
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/super.c b/fs/super.c index f822c74f25be..721236e6177a 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/blkdev.h> | 28 | #include <linux/blkdev.h> |
29 | #include <linux/quotaops.h> | 29 | #include <linux/quotaops.h> |
30 | #include <linux/namei.h> | 30 | #include <linux/namei.h> |
31 | #include <linux/buffer_head.h> /* for fsync_super() */ | ||
32 | #include <linux/mount.h> | 31 | #include <linux/mount.h> |
33 | #include <linux/security.h> | 32 | #include <linux/security.h> |
34 | #include <linux/syscalls.h> | 33 | #include <linux/syscalls.h> |
@@ -304,7 +303,7 @@ void generic_shutdown_super(struct super_block *sb) | |||
304 | 303 | ||
305 | if (sb->s_root) { | 304 | if (sb->s_root) { |
306 | shrink_dcache_for_umount(sb); | 305 | shrink_dcache_for_umount(sb); |
307 | fsync_super(sb); | 306 | sync_filesystem(sb); |
308 | lock_super(sb); | 307 | lock_super(sb); |
309 | sb->s_flags &= ~MS_ACTIVE; | 308 | sb->s_flags &= ~MS_ACTIVE; |
310 | 309 | ||
@@ -543,7 +542,7 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) | |||
543 | if (flags & MS_RDONLY) | 542 | if (flags & MS_RDONLY) |
544 | acct_auto_close(sb); | 543 | acct_auto_close(sb); |
545 | shrink_dcache_sb(sb); | 544 | shrink_dcache_sb(sb); |
546 | fsync_super(sb); | 545 | sync_filesystem(sb); |
547 | 546 | ||
548 | /* If we are remounting RDONLY and current sb is read/write, | 547 | /* If we are remounting RDONLY and current sb is read/write, |
549 | make sure there are no rw files opened */ | 548 | make sure there are no rw files opened */ |