summaryrefslogtreecommitdiff
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-09-16 13:44:21 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2016-09-16 13:44:21 +0300
commitf0312210010bf063c29efe112b0d9accbc9191b3 (patch)
treecbd83b7b3306eb7ecda01d027b769231cf61f952 /fs/btrfs/file.c
parent4d0c5ba2ff79ef9f5188998b29fd28fcb05f3667 (diff)
downloadlinux-f0312210010bf063c29efe112b0d9accbc9191b3.tar.xz
btrfs: use filemap_check_errors()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Reviewed-by: Omar Sandoval <osandov@fb.com> Cc: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index fea31a4a6e36..4843cb994835 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -2040,7 +2040,7 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
* flags for any errors that might have happened while doing
* writeback of file data.
*/
- ret = btrfs_inode_check_errors(inode);
+ ret = filemap_check_errors(inode->i_mapping);
inode_unlock(inode);
goto out;
}