]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: add set_folio_extent_mapped() helper
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 14 Dec 2023 16:13:29 +0000 (16:13 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:45 +0000 (16:24 +0100)
commitdfba9f47730604a46c284f6099a11c5686b6289d
tree03bb6b3931b4e4a897462d827fff88b23b9a34e0
parent8fd2b12e6a414b383692c7f5ca05ab75204bdece
btrfs: add set_folio_extent_mapped() helper

Turn set_page_extent_mapped() into a wrapper around this version.
Saves a call to compound_head() for callers who already have a folio
and removes a couple of users of page->mapping.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h