]> git.baikalelectronics.ru Git - kernel.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)
commita3979f6857605585bd6f2853e599b21592687e32
tree5200af4cf8dce6cead47905b7bd3d3a15405ff99
parent1f77308548ebaa376d4a136ee5651d89af31e8d8
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