]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Tue, 6 Apr 2021 15:44:25 +0000 (17:44 +0200)
commite1524e8621f699ee8f7aab7185693f07d3830f0d
tree7bcad847c50bef83cc5de7f133c601d4bc330eb2
parent303b8badd3c62848a3da1f5f809418696a9bc7f6
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