btrfs: introduce submit_eb_subpage() to submit a subpage metadata page
authorQu Wenruo <wqu@suse.com>
Tue, 6 Apr 2021 00:36:03 +0000 (08:36 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:22 +0000 (17:25 +0200)
commitc4aec299fa8f73f0fd10bc556f936f0da50e3e83
tree44e94232d8b87a085e76d36d5a7752d5922b9310
parentf3156df944754d9984b1595994caa1c93b8cae3b
btrfs: introduce submit_eb_subpage() to submit a subpage metadata page

The new function, submit_eb_subpage(), will submit all the dirty extent
buffers in the page.

The major difference between submit_eb_page() and submit_eb_subpage()
is:
- How to grab extent buffer
  Now we use find_extent_buffer_nospinlock() other than using
  page::private.

All other different handling is already done in functions like
lock_extent_buffer_for_io() and write_one_eb().

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