diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2012-11-01 06:38:48 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 17:15:19 -0500 |
commit | 9f3959c53d57d010ae6f4205fbd0159cb7976a83 (patch) | |
tree | f650895983af336805cc33c91e47af94b426cbd4 /fs/btrfs/file.c | |
parent | 183f37fa3503332740c76f1b493f4304ec889358 (diff) | |
download | linux-9f3959c53d57d010ae6f4205fbd0159cb7976a83.tar.bz2 |
Btrfs: get right arguments for btrfs_wait_ordered_range
btrfs_wait_ordered_range expects for 'len' instead of 'end'.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 9ab1bed88116..d2df98124d0f 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1562,7 +1562,7 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) * range being left. */ atomic_inc(&root->log_batch); - btrfs_wait_ordered_range(inode, start, end); + btrfs_wait_ordered_range(inode, start, end - start + 1); atomic_inc(&root->log_batch); /* |