diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-01-24 15:58:51 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:59 +0100 |
commit | 9a9239acb465df1f6aab379c77befd5cde98c9df (patch) | |
tree | 15371c5973ab752e311dd4c1cdda30cc88b74ace /fs/btrfs/inode.c | |
parent | a7ceffbbbd0886f955f10a2ab1ad38ae42df359c (diff) | |
download | lwn-9a9239acb465df1f6aab379c77befd5cde98c9df.tar.gz lwn-9a9239acb465df1f6aab379c77befd5cde98c9df.zip |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
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: * 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); |