diff options
author | Jan Kara <jack@suse.cz> | 2009-04-27 10:43:53 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:04 -0400 |
commit | 60b0680fa236ac4e17ce31a50048c9d75f9ec831 (patch) | |
tree | c8ca34340a173326694247eab779e713c57202c2 /fs/super.c | |
parent | c15c54f5f056ee4819da9fde59a5f2cd45445f23 (diff) |
vfs: Rename fsync_super() to sync_filesystem() (version 4)
Rename the function so that it better describe what it really does. Also
remove the unnecessary include of buffer_head.h.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 */ |