f2fs: add key function to handle inline dir
PATCH v2 4/6 f2fs: add key function to handle inline dir
Adds Functions to implement inline dir init/lookup/insert/delete/convert ops.
Signed-off-by Chao Yu <[email protected]>
--- fs/f2fs/f2fs.h | 9 ++ fs/f2fs/inline.c | 347 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 356 insertions(+)
fs/f2fs/f2fs.h +9 -0
@@ -1526,4 +1526,13 @@ int f2fs_convert_inline_data(struct inode *, pgoff_t, struct page *);int f2fs_write_inline_data (struct inode *,struct page *,unsigned int );void truncate_inline_data (struct inode *,u64 );bool recover_inline_data (struct inode *,struct page *); +struct f2fs_dir_entry *find_in_inline_dir (struct inode *,struct qstr *, +struct page **); +struct f2fs_dir_entry *f2fs_parent_inline_dir (struct inode *,struct page **); +int make_empty_inline_dir (struct inode *inode,struct inode *,struct page *); +int f2fs_add_inline_entry (struct inode *,const struct qstr *,struct inode *); +void f2fs_delete_inline_entry (struct f2fs_dir_entry *,struct page *, +struct inode *,struct inode *); +bool f2fs_empty_inline_dir (struct inode *); +int f2fs_read_inline_dir (struct file *,struct dir_context *);#endif
fs/f2fs/inline.c +347 -0
350 lines not on this page · raw message
Signature · 1 line
2.0.1.474.g72c7794