/openbmc/linux/fs/f2fs/ |
H A D | inline.c | 36 static bool inode_has_blocks(struct inode *inode, struct page *ipage) in inode_has_blocks() argument 38 struct f2fs_inode *ri = F2FS_INODE(ipage); in inode_has_blocks() 51 bool f2fs_sanity_check_inline_data(struct inode *inode, struct page *ipage) in f2fs_sanity_check_inline_data() argument 56 if (inode_has_blocks(inode, ipage)) in f2fs_sanity_check_inline_data() 82 void f2fs_do_read_inline_data(struct page *page, struct page *ipage) in f2fs_do_read_inline_data() argument 94 memcpy_to_page(page, 0, inline_data_addr(inode, ipage), in f2fs_do_read_inline_data() 101 struct page *ipage, u64 from) in f2fs_truncate_inline_inode() argument 108 addr = inline_data_addr(inode, ipage); in f2fs_truncate_inline_inode() 110 f2fs_wait_on_page_writeback(ipage, NODE, true, true); in f2fs_truncate_inline_inode() 112 set_page_dirty(ipage); in f2fs_truncate_inline_inode() [all …]
|
H A D | xattr.c | 155 const struct qstr *qstr, struct page *ipage) in f2fs_init_security() argument 158 &f2fs_initxattrs, ipage); in f2fs_init_security() 274 static int read_inline_xattr(struct inode *inode, struct page *ipage, in read_inline_xattr() argument 282 if (ipage) { in read_inline_xattr() 283 inline_addr = inline_xattr_addr(inode, ipage); in read_inline_xattr() 317 static int lookup_all_xattrs(struct inode *inode, struct page *ipage, in lookup_all_xattrs() argument 341 err = read_inline_xattr(inode, ipage, txattr_addr); in lookup_all_xattrs() 388 static int read_all_xattrs(struct inode *inode, struct page *ipage, in read_all_xattrs() argument 405 err = read_inline_xattr(inode, ipage, txattr_addr); in read_all_xattrs() 432 void *txattr_addr, struct page *ipage) in write_all_xattrs() argument [all …]
|
H A D | acl.c | 231 struct posix_acl *acl, struct page *ipage) in __f2fs_set_acl() argument 242 if (acl && !ipage) { in __f2fs_set_acl() 269 error = f2fs_setxattr(inode, name_index, "", value, size, ipage, 0); in __f2fs_set_acl() 414 int f2fs_init_acl(struct inode *inode, struct inode *dir, struct page *ipage, in f2fs_init_acl() argument 428 ipage); in f2fs_init_acl() 436 ipage); in f2fs_init_acl()
|
H A D | data.c | 1347 struct page *ipage, pgoff_t index, bool new_i_size) in f2fs_get_new_data_page() argument 1360 f2fs_put_page(ipage, 1); in f2fs_get_new_data_page() 1364 set_new_dnode(&dn, inode, ipage, NULL, 0); in f2fs_get_new_data_page() 1370 if (!ipage) in f2fs_get_new_data_page() 1384 f2fs_bug_on(F2FS_I_SB(inode), ipage); in f2fs_get_new_data_page() 3341 struct page *ipage; in prepare_write_begin() local 3366 ipage = f2fs_get_node_page(sbi, inode->i_ino); in prepare_write_begin() 3367 if (IS_ERR(ipage)) { in prepare_write_begin() 3368 err = PTR_ERR(ipage); in prepare_write_begin() 3372 set_new_dnode(&dn, inode, ipage, ipage, 0); in prepare_write_begin() [all …]
|
H A D | acl.h | 46 struct page *ipage, struct page *dpage) in f2fs_init_acl() argument
|
H A D | node.c | 2706 struct page *ipage; in f2fs_recover_inline_xattr() local 2709 ipage = f2fs_get_node_page(F2FS_I_SB(inode), inode->i_ino); in f2fs_recover_inline_xattr() 2710 if (IS_ERR(ipage)) in f2fs_recover_inline_xattr() 2711 return PTR_ERR(ipage); in f2fs_recover_inline_xattr() 2727 dst_addr = inline_xattr_addr(inode, ipage); in f2fs_recover_inline_xattr() 2731 f2fs_wait_on_page_writeback(ipage, NODE, true, true); in f2fs_recover_inline_xattr() 2734 f2fs_update_inode(inode, ipage); in f2fs_recover_inline_xattr() 2735 f2fs_put_page(ipage, 1); in f2fs_recover_inline_xattr() 2792 struct page *ipage; in f2fs_recover_inode_page() local 2802 ipage = f2fs_grab_cache_page(NODE_MAPPING(sbi), ino, false); in f2fs_recover_inode_page() [all …]
|
H A D | dir.c | 466 struct page *ipage) in init_dent_inode() argument 473 f2fs_wait_on_page_writeback(ipage, NODE, true, true); in init_dent_inode() 476 ri = F2FS_INODE(ipage); in init_dent_inode() 497 set_page_dirty(ipage); in init_dent_inode() 643 bool f2fs_has_enough_room(struct inode *dir, struct page *ipage, in f2fs_has_enough_room() argument 650 make_dentry_ptr_inline(dir, &d, inline_data_addr(dir, ipage)); in f2fs_has_enough_room()
|
H A D | extent_cache.c | 22 bool sanity_check_extent_cache(struct inode *inode, struct page *ipage) in sanity_check_extent_cache() argument 25 struct f2fs_extent *i_ext = &F2FS_INODE(ipage)->i_ext; in sanity_check_extent_cache() 378 void f2fs_init_read_extent_tree(struct inode *inode, struct page *ipage) in f2fs_init_read_extent_tree() argument 382 struct f2fs_extent *i_ext = &F2FS_INODE(ipage)->i_ext; in f2fs_init_read_extent_tree() 390 f2fs_wait_on_page_writeback(ipage, NODE, true, true); in f2fs_init_read_extent_tree() 392 set_page_dirty(ipage); in f2fs_init_read_extent_tree()
|
H A D | inode.c | 101 static void __recover_inline_status(struct inode *inode, struct page *ipage) in __recover_inline_status() argument 103 void *inline_data = inline_data_addr(inode, ipage); in __recover_inline_status() 109 f2fs_wait_on_page_writeback(ipage, NODE, true, true); in __recover_inline_status() 112 set_raw_inline(inode, F2FS_INODE(ipage)); in __recover_inline_status() 113 set_page_dirty(ipage); in __recover_inline_status()
|
H A D | xattr.h | 162 const struct qstr *qstr, struct page *ipage) in f2fs_init_security() argument
|
H A D | recovery.c | 167 static int recover_dentry(struct inode *inode, struct page *ipage, in recover_dentry() argument 170 struct f2fs_inode *raw_inode = F2FS_INODE(ipage); in recover_dentry() 243 __func__, ino_of_node(ipage), name, in recover_dentry()
|
H A D | f2fs.h | 981 struct page *ipage, struct page *npage, nid_t nid) in set_new_dnode() argument 985 dn->inode_page = ipage; in set_new_dnode() 3555 bool f2fs_has_enough_room(struct inode *dir, struct page *ipage, 3835 struct page *ipage, pgoff_t index, bool new_i_size); 4138 bool f2fs_sanity_check_inline_data(struct inode *inode, struct page *ipage); 4140 void f2fs_do_read_inline_data(struct page *page, struct page *ipage); 4142 struct page *ipage, u64 from); 4153 struct page *ipage); 4179 bool sanity_check_extent_cache(struct inode *inode, struct page *ipage); 4189 void f2fs_init_read_extent_tree(struct inode *inode, struct page *ipage);
|
H A D | file.c | 706 struct page *ipage; in f2fs_do_truncate_blocks() local 719 ipage = f2fs_get_node_page(sbi, inode->i_ino); in f2fs_do_truncate_blocks() 720 if (IS_ERR(ipage)) { in f2fs_do_truncate_blocks() 721 err = PTR_ERR(ipage); in f2fs_do_truncate_blocks() 726 f2fs_truncate_inline_inode(inode, ipage, from); in f2fs_do_truncate_blocks() 727 f2fs_put_page(ipage, 1); in f2fs_do_truncate_blocks() 732 set_new_dnode(&dn, inode, ipage, NULL, 0); in f2fs_do_truncate_blocks()
|