aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-01-24 18:58:51 -0500
committerDavid Sterba <dsterba@suse.com>2017-02-14 09:50:59 -0500
commit9a9239acb465df1f6aab379c77befd5cde98c9df (patch)
tree15371c5973ab752e311dd4c1cdda30cc88b74ace
parenta7ceffbbbd0886f955f10a2ab1ad38ae42df359c (diff)
Btrfs: fix wrong argument for btrfs_lookup_ordered_range
Commit Btrfs: btrfs_page_mkwrite: Reserve space in sectorsized units" (d0b7da88) did this, but btrfs_lookup_ordered_range expects a 'length' rather than a 'page_end'. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: David Sterba <dsterba@suse.com>
-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 70f932d4b69d..ac5f8c404268 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9038,7 +9038,7 @@ again:
9038 * we can't set the delalloc bits if there are pending ordered 9038 * we can't set the delalloc bits if there are pending ordered
9039 * extents. Drop our locks and wait for them to finish 9039 * extents. Drop our locks and wait for them to finish
9040 */ 9040 */
9041 ordered = btrfs_lookup_ordered_range(inode, page_start, page_end); 9041 ordered = btrfs_lookup_ordered_range(inode, page_start, PAGE_SIZE);
9042 if (ordered) { 9042 if (ordered) {
9043 unlock_extent_cached(io_tree, page_start, page_end, 9043 unlock_extent_cached(io_tree, page_start, page_end,
9044 &cached_state, GFP_NOFS); 9044 &cached_state, GFP_NOFS);