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>
This commit is contained in:
Liu Bo 2012-11-01 06:38:48 +00:00 committed by Josef Bacik
parent 183f37fa35
commit 9f3959c53d

View File

@ -1562,7 +1562,7 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
* range being left. * range being left.
*/ */
atomic_inc(&root->log_batch); 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); atomic_inc(&root->log_batch);
/* /*