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: * we can't set the delalloc bits if there are pending ordered * extents. Drop our locks and wait for them to finish */ - ordered = btrfs_lookup_ordered_range(inode, page_start, page_end); + ordered = btrfs_lookup_ordered_range(inode, page_start, PAGE_SIZE); if (ordered) { unlock_extent_cached(io_tree, page_start, page_end, &cached_state, GFP_NOFS);