aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-03-31 21:11:30 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2025-04-28 15:26:36 +0000
commit153e4a7f890697556e4c9935094b8e005ec56783 (patch)
tree0ce8cc3cedb9e0a95a11509947ee3fcaf5926086 /fs/f2fs/node.c
parent5c93848a92ace3aa61c5b52eece314cee36562be (diff)
f2fs: Add f2fs_get_xnode_folio()
The folio equivalent of f2fs_get_xnode_page(). 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 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index f3335b721a7a..e2788e27904a 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1553,6 +1553,11 @@ struct page *f2fs_get_inode_page(struct f2fs_sb_info *sbi, pgoff_t ino)
return &folio->page;
}
+struct folio *f2fs_get_xnode_folio(struct f2fs_sb_info *sbi, pgoff_t xnid)
+{
+ return __get_node_folio(sbi, xnid, NULL, 0, NODE_TYPE_XATTR);
+}
+
struct page *f2fs_get_xnode_page(struct f2fs_sb_info *sbi, pgoff_t xnid)
{
struct folio *folio = __get_node_folio(sbi, xnid, NULL, 0,