aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 30a6cc51f32c..c46a025d0c4b 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -7456,7 +7456,7 @@ static ssize_t btrfs_direct_IO(int rw, struct kiocb *iocb,
7456 * we need to flush the dirty pages again to make absolutely sure 7456 * we need to flush the dirty pages again to make absolutely sure
7457 * that any outstanding dirty pages are on disk. 7457 * that any outstanding dirty pages are on disk.
7458 */ 7458 */
7459 count = iov_length(iter->iov, iter->nr_segs); 7459 count = iov_iter_count(iter);
7460 if (test_bit(BTRFS_INODE_HAS_ASYNC_EXTENT, 7460 if (test_bit(BTRFS_INODE_HAS_ASYNC_EXTENT,
7461 &BTRFS_I(inode)->runtime_flags)) 7461 &BTRFS_I(inode)->runtime_flags))
7462 filemap_fdatawrite_range(inode->i_mapping, offset, count); 7462 filemap_fdatawrite_range(inode->i_mapping, offset, count);