Skip to content

Commit

Permalink
Btrfs: get right arguments for btrfs_wait_ordered_range
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liu Bo authored and Josef Bacik committed Dec 12, 2012
1 parent 183f37f commit 9f3959c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 9f3959c

Please sign in to comment.