diff options
author | 2024-11-28 04:58:21 +0000 | |
---|---|---|
committer | 2024-12-16 16:12:10 +0000 | |
commit | 1cf746007005593aa51395302ca0d31814f4ce42 (patch) | |
tree | 941e0a164d5750cc0a41092a0f6cbf9951992b7a | |
parent | f2fs: Convert submit tracepoints to take a folio (diff) | |
download | wireguard-linux-1cf746007005593aa51395302ca0d31814f4ce42.tar.xz wireguard-linux-1cf746007005593aa51395302ca0d31814f4ce42.zip |
f2fs: Add F2FS_F_SB()
This is the folio equivalent of F2FS_P_SB(). Removes a call to
page_file_mapping() as we know folios seen by f2fs are never part of
the swap cache.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | fs/f2fs/f2fs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 6f2cbf4c5740..f523dd302bf6 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -2003,9 +2003,14 @@ static inline struct f2fs_sb_info *F2FS_M_SB(struct address_space *mapping) return F2FS_I_SB(mapping->host); } +static inline struct f2fs_sb_info *F2FS_F_SB(struct folio *folio) +{ + return F2FS_M_SB(folio->mapping); +} + static inline struct f2fs_sb_info *F2FS_P_SB(struct page *page) { - return F2FS_M_SB(page_file_mapping(page)); + return F2FS_F_SB(page_folio(page)); } static inline struct f2fs_super_block *F2FS_RAW_SUPER(struct f2fs_sb_info *sbi) |