diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 4 |
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) | |||
204 | { | 204 | { |
205 | struct super_block *sb = get_super(bdev); | 205 | struct super_block *sb = get_super(bdev); |
206 | if (sb) { | 206 | if (sb) { |
207 | int res = fsync_super(sb); | 207 | int res = sync_filesystem(sb); |
208 | drop_super(sb); | 208 | drop_super(sb); |
209 | return res; | 209 | return res; |
210 | } | 210 | } |
@@ -246,7 +246,7 @@ struct super_block *freeze_bdev(struct block_device *bdev) | |||
246 | sb->s_frozen = SB_FREEZE_WRITE; | 246 | sb->s_frozen = SB_FREEZE_WRITE; |
247 | smp_wmb(); | 247 | smp_wmb(); |
248 | 248 | ||
249 | fsync_super(sb); | 249 | sync_filesystem(sb); |
250 | 250 | ||
251 | sb->s_frozen = SB_FREEZE_TRANS; | 251 | sb->s_frozen = SB_FREEZE_TRANS; |
252 | smp_wmb(); | 252 | smp_wmb(); |