summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorJan Kara2009-04-27 16:43:53 +0200
committerAl Viro2009-06-12 03:36:04 +0200
commit60b0680fa236ac4e17ce31a50048c9d75f9ec831 (patch)
treec8ca34340a173326694247eab779e713c57202c2 /fs/block_dev.c
parentvfs: Move syncing code from super.c to sync.c (version 4) (diff)
downloadkernel-qcow2-linux-60b0680fa236ac4e17ce31a50048c9d75f9ec831.tar.gz
kernel-qcow2-linux-60b0680fa236ac4e17ce31a50048c9d75f9ec831.tar.xz
kernel-qcow2-linux-60b0680fa236ac4e17ce31a50048c9d75f9ec831.zip
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/block_dev.c')
-rw-r--r--fs/block_dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 4b6a3b9d01ef..3a6d4fb2a329 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -204,7 +204,7 @@ int fsync_bdev(struct block_device *bdev)
{
struct super_block *sb = get_super(bdev);
if (sb) {
- int res = fsync_super(sb);
+ int res = sync_filesystem(sb);
drop_super(sb);
return res;
}
@@ -246,7 +246,7 @@ struct super_block *freeze_bdev(struct block_device *bdev)
sb->s_frozen = SB_FREEZE_WRITE;
smp_wmb();
- fsync_super(sb);
+ sync_filesystem(sb);
sb->s_frozen = SB_FREEZE_TRANS;
smp_wmb();