projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183f37f
)
Btrfs: get right arguments for btrfs_wait_ordered_range
author
Liu Bo
<bo.li.liu@oracle.com>
Thu, 1 Nov 2012 06:38:48 +0000
(06:38 +0000)
committer
Josef Bacik
<jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:19 +0000
(17:15 -0500)
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>
fs/btrfs/file.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/file.c
b/fs/btrfs/file.c
index
9ab1bed
..
d2df981
100644
(file)
--- 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);
/*