diff options
Diffstat (limited to 'fs/nilfs2/file.c')
-rw-r--r-- | fs/nilfs2/file.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c index 24978153c0c4..e9e3325f29f3 100644 --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c | |||
@@ -56,11 +56,9 @@ int nilfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) | |||
56 | mutex_unlock(&inode->i_mutex); | 56 | mutex_unlock(&inode->i_mutex); |
57 | 57 | ||
58 | nilfs = inode->i_sb->s_fs_info; | 58 | nilfs = inode->i_sb->s_fs_info; |
59 | if (!err && nilfs_test_opt(nilfs, BARRIER)) { | 59 | if (!err) |
60 | err = blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL, NULL); | 60 | err = nilfs_flush_device(nilfs); |
61 | if (err != -EIO) | 61 | |
62 | err = 0; | ||
63 | } | ||
64 | return err; | 62 | return err; |
65 | } | 63 | } |
66 | 64 | ||