]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nilfs2: convert segment usage file to be folio-based
authorRyusuke Konishi <konishi.ryusuke@gmail.com>
Thu, 24 Oct 2024 09:25:37 +0000 (18:25 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Nov 2024 01:12:38 +0000 (17:12 -0800)
commit832acfe6ea0365524a35df1e9b1d7350ed9ea5f5
tree54b381a9ffe6ba65d963b859c39f32dea52b3e6b
parent4fd0a096f46887822b1138677510980fe03c002b
nilfs2: convert segment usage file to be folio-based

For the sufile, which is a metadata file that holds information about
managing segments, convert the page-based implementation to a folio-based
implementation.

kmap_local_page() is changed to use kmap_local_folio(), and where offsets
within a page are calculated using bh_offset(), are replaced with
calculations using offset_in_folio() with an additional helper function
nilfs_sufile_segment_usage_offset().

Link: https://lkml.kernel.org/r/20241024092602.13395-4-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/sufile.c