]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: make lock_extent_buffer_for_io() to be subpage compatible
authorQu Wenruo <wqu@suse.com>
Tue, 6 Apr 2021 00:36:02 +0000 (08:36 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:22 +0000 (17:25 +0200)
commitf3156df944754d9984b1595994caa1c93b8cae3b
tree5200af4cf8dce6cead47905b7bd3d3a15405ff99
parent35b6ddfa9626d1461d54eb203e9b6021d97dd13c
btrfs: make lock_extent_buffer_for_io() to be subpage compatible

For subpage metadata, we don't use page locking at all.  So just skip
the page locking part for subpage.  The rest of the function can be
reused.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c