diff options
author | Omar Sandoval <osandov@fb.com> | 2019-12-02 17:34:23 -0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-20 16:40:55 +0100 |
commit | 39b07b5d7072f8e9fd8cc2f840d3749f86699bbb (patch) | |
tree | d02eeda8b1ca9d39ce32911a79cfdd774d2da83b /fs/btrfs/ioctl.c | |
parent | f95d713b540487901871f90512f01f2fb3e6dfaa (diff) | |
download | linux-39b07b5d7072f8e9fd8cc2f840d3749f86699bbb.tar.gz linux-39b07b5d7072f8e9fd8cc2f840d3749f86699bbb.tar.bz2 linux-39b07b5d7072f8e9fd8cc2f840d3749f86699bbb.zip |
btrfs: drop create parameter to btrfs_get_extent()
We only pass this as 1 from __extent_writepage_io(). The parameter
basically means "pretend I didn't pass in a page". This is silly since
we can simply not pass in the page. Get rid of the parameter from
btrfs_get_extent(), and since it's used as a get_extent_t callback,
remove it from get_extent_t and btree_get_extent(), neither of which
need it.
While we're here, let's document btrfs_get_extent().
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 12ae31e1813e..1b1b6ff855aa 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1128,7 +1128,7 @@ static struct extent_map *defrag_lookup_extent(struct inode *inode, u64 start) /* get the big lock and read metadata off disk */ lock_extent_bits(io_tree, start, end, &cached); - em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, start, len, 0); + em = btrfs_get_extent(BTRFS_I(inode), NULL, 0, start, len); unlock_extent_cached(io_tree, start, end, &cached); if (IS_ERR(em)) |