mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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>
This commit is contained in:
parent
c15c54f5f0
commit
60b0680fa2
5 changed files with 12 additions and 13 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue