summaryrefslogtreecommitdiff
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-08-14 18:52:08 +0100
committerDavid Sterba <dsterba@suse.com>2023-09-13 18:40:54 +0200
commit06ed09351b67eb1114ae106a87a0ee3ea9adb3db (patch)
tree446f1bdc227effc4435c2fc322d521d03093f333 /fs/btrfs/file.c
parent5facccc9402301d67d48bef06159b91f7e41efc0 (diff)
btrfs: convert btrfs_read_merkle_tree_page() to use a folio
Remove a number of hidden calls to compound_head() by using a folio throughout. Also follow core kernel coding style by adding the folio to the page cache immediately after allocation instead of doing the read first, then adding it to the page cache. This ordering makes subsequent readers block waiting for the first reader instead of duplicating the work only to throw it away when they find out they lost the race. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file.c')
0 files changed, 0 insertions, 0 deletions