diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-03-31 23:12:20 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2025-04-28 18:26:43 +0300 |
| commit | 0439ae45b5e56775f76e4d87ea2197c3e2f2d8d5 (patch) | |
| tree | e71a231ceb59da7b0c321c13bb18ad6649119500 | |
| parent | e0691a051f1138c5ac2adf0971c255035f797e8d (diff) | |
| download | linux-0439ae45b5e56775f76e4d87ea2197c3e2f2d8d5.tar.xz | |
f2fs: Pass a folio to init_dent_inode()
The only caller has a folio, so pass it in. Removes two hidden calls
to compound_head().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
| -rw-r--r-- | fs/f2fs/dir.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index 4e82b9f9e12a..0465c71a683a 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -444,17 +444,17 @@ void f2fs_set_link(struct inode *dir, struct f2fs_dir_entry *de, static void init_dent_inode(struct inode *dir, struct inode *inode, const struct f2fs_filename *fname, - struct page *ipage) + struct folio *ifolio) { struct f2fs_inode *ri; if (!fname) /* tmpfile case? */ return; - f2fs_wait_on_page_writeback(ipage, NODE, true, true); + f2fs_folio_wait_writeback(ifolio, NODE, true, true); - /* copy name info. to this inode page */ - ri = F2FS_INODE(ipage); + /* copy name info. to this inode folio */ + ri = F2FS_INODE(&ifolio->page); ri->i_namelen = cpu_to_le32(fname->disk_name.len); memcpy(ri->i_name, fname->disk_name.name, fname->disk_name.len); if (IS_ENCRYPTED(dir)) { @@ -475,7 +475,7 @@ static void init_dent_inode(struct inode *dir, struct inode *inode, file_lost_pino(inode); } } - set_page_dirty(ipage); + folio_mark_dirty(ifolio); } void f2fs_do_make_empty_dir(struct inode *inode, struct inode *parent, @@ -558,7 +558,7 @@ struct page *f2fs_init_inode_metadata(struct inode *inode, struct inode *dir, return &folio->page; } - init_dent_inode(dir, inode, fname, &folio->page); + init_dent_inode(dir, inode, fname, folio); /* * This file should be checkpointed during fsync. |
