/linux-6.6.21/fs/f2fs/ |
D | namei.c | 185 if (F2FS_I(dir)->i_flags & F2FS_NOCOMP_FL) { in set_compress_new_inode() 186 F2FS_I(inode)->i_flags |= F2FS_NOCOMP_FL; in set_compress_new_inode() 188 } else if (F2FS_I(dir)->i_flags & F2FS_COMPR_FL) { in set_compress_new_inode() 247 F2FS_I(inode)->i_crtime = inode->i_mtime; in f2fs_new_inode() 251 F2FS_I(inode)->i_current_depth = 1; in f2fs_new_inode() 260 (F2FS_I(dir)->i_flags & F2FS_PROJINHERIT_FL)) in f2fs_new_inode() 261 F2FS_I(inode)->i_projid = F2FS_I(dir)->i_projid; in f2fs_new_inode() 263 F2FS_I(inode)->i_projid = make_kprojid(&init_user_ns, in f2fs_new_inode() 281 F2FS_I(inode)->i_extra_isize = F2FS_TOTAL_EXTRA_ATTR_SIZE; in f2fs_new_inode() 299 F2FS_I(inode)->i_inline_xattr_size = xattr_size; in f2fs_new_inode() [all …]
|
D | inode.c | 40 unsigned int flags = F2FS_I(inode)->i_flags; in f2fs_set_inode_flags() 282 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() 387 struct f2fs_inode_info *fi = F2FS_I(inode); in init_idisk_time() 397 struct f2fs_inode_info *fi = F2FS_I(inode); in do_read_inode() 672 struct extent_tree *et = F2FS_I(inode)->extent_tree[EX_READ]; in f2fs_update_inode() 682 ri->i_advise = F2FS_I(inode)->i_advise; in f2fs_update_inode() 709 cpu_to_le32(F2FS_I(inode)->i_current_depth); in f2fs_update_inode() 712 cpu_to_le16(F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN]); in f2fs_update_inode() 713 ri->i_xattr_nid = cpu_to_le32(F2FS_I(inode)->i_xattr_nid); in f2fs_update_inode() 714 ri->i_flags = cpu_to_le32(F2FS_I(inode)->i_flags); in f2fs_update_inode() [all …]
|
D | xattr.c | 107 *((char *)buffer) = F2FS_I(inode)->i_advise; in f2fs_xattr_advise_get() 117 unsigned char old_advise = F2FS_I(inode)->i_advise; in f2fs_xattr_advise_set() 132 F2FS_I(inode)->i_advise = new_advise; in f2fs_xattr_advise_set() 300 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in read_xattr_block() 325 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in lookup_all_xattrs() 392 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in read_all_xattrs() 443 if (hsize > inline_size && !F2FS_I(inode)->i_xattr_nid) in write_all_xattrs() 477 if (F2FS_I(inode)->i_xattr_nid) { in write_all_xattrs() 478 xpage = f2fs_get_node_page(sbi, F2FS_I(inode)->i_xattr_nid); in write_all_xattrs() 532 f2fs_down_read(&F2FS_I(inode)->i_xattr_sem); in f2fs_getxattr() [all …]
|
D | dir.c | 314 nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); in find_in_level() 317 bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, in find_in_level() 352 if (!de && room && F2FS_I(dir)->chash != fname->hash) { in find_in_level() 353 F2FS_I(dir)->chash = fname->hash; in find_in_level() 354 F2FS_I(dir)->clevel = level; in find_in_level() 379 max_depth = F2FS_I(dir)->i_current_depth; in __f2fs_find_entry() 395 F2FS_I(dir)->task = current; in __f2fs_find_entry() 615 if (F2FS_I(dir)->i_current_depth != current_depth) in f2fs_update_parent_metadata() 695 current_depth = F2FS_I(dir)->i_current_depth; in f2fs_add_regular_entry() 696 if (F2FS_I(dir)->chash == fname->hash) { in f2fs_add_regular_entry() [all …]
|
D | file.c | 205 else if (!f2fs_is_checkpointed_node(sbi, F2FS_I(inode)->i_pino)) in need_do_checkpoint() 213 f2fs_exist_written_data(sbi, F2FS_I(inode)->i_pino, in need_do_checkpoint() 233 struct f2fs_inode_info *fi = F2FS_I(inode); in try_to_fix_pino() 317 f2fs_down_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file() 319 f2fs_up_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file() 530 f2fs_down_read(&F2FS_I(inode)->i_sem); in f2fs_file_mmap() 532 f2fs_up_read(&F2FS_I(inode)->i_sem); in f2fs_file_mmap() 566 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() 567 bool released = !atomic_read(&F2FS_I(dn->inode)->i_compr_blocks); in f2fs_truncate_data_blocks_range() 744 F2FS_I(inode)->i_cluster_size << PAGE_SHIFT); in f2fs_truncate_blocks() [all …]
|
D | compress.c | 245 if (F2FS_I(cc->inode)->i_compress_level) in lz4_init_compress_ctx() 271 unsigned char level = F2FS_I(cc->inode)->i_compress_level; in lz4_compress_pages() 337 unsigned char level = F2FS_I(cc->inode)->i_compress_level; in zstd_init_compress_ctx() 558 return f2fs_cops[F2FS_I(inode)->i_compress_algorithm]; in f2fs_is_compress_backend_ready() 626 struct f2fs_inode_info *fi = F2FS_I(cc->inode); in f2fs_compress_pages() 740 struct f2fs_inode_info *fi = F2FS_I(dic->inode); in f2fs_decompress_cluster() 897 unsigned int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_sanity_check_cluster() 944 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in __f2fs_cluster_blocks() 946 F2FS_I(inode)->i_log_cluster_size; in __f2fs_cluster_blocks() 1000 index >> F2FS_I(inode)->i_log_cluster_size, in f2fs_is_compressed_cluster() [all …]
|
D | f2fs.h | 1924 static inline struct f2fs_inode_info *F2FS_I(struct inode *inode) in F2FS_I() function 2217 block_t xattr_block = F2FS_I(inode)->i_xattr_nid ? 1 : 0; in F2FS_HAS_BLOCKS() 2442 atomic_inc(&F2FS_I(inode)->dirty_pages); in inode_inc_dirty_pages() 2460 atomic_dec(&F2FS_I(inode)->dirty_pages); in inode_dec_dirty_pages() 2470 struct f2fs_inode_info *fi = F2FS_I(inode); in inc_atomic_write_cnt() 2483 struct f2fs_inode_info *fi = F2FS_I(inode); in release_atomic_write_cnt() 2496 return atomic_read(&F2FS_I(inode)->dirty_pages); in get_dirty_pages() 3024 set_bit(flag, F2FS_I(inode)->flags); in set_inode_flag() 3030 return test_bit(flag, F2FS_I(inode)->flags); in is_inode_flag_set() 3035 clear_bit(flag, F2FS_I(inode)->flags); in clear_inode_flag() [all …]
|
D | extent_cache.c | 25 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_extent_cache() 354 F2FS_I(inode)->extent_tree[type] = et; in __grab_extent_tree() 430 if (!F2FS_I(inode)->extent_tree[EX_READ]) in f2fs_init_read_extent_tree() 457 struct extent_tree *et = F2FS_I(inode)->extent_tree[type]; in __lookup_extent_tree() 597 struct extent_tree *et = F2FS_I(inode)->extent_tree[type]; in __update_extent_tree_range() 761 struct extent_tree *et = F2FS_I(inode)->extent_tree[EX_READ]; in f2fs_update_read_extent_tree_range_compressed() 1061 struct extent_tree *et = F2FS_I(inode)->extent_tree[type]; in __destroy_extent_node() 1083 struct extent_tree *et = F2FS_I(inode)->extent_tree[type]; in __drop_extent_tree() 1113 struct extent_tree *et = F2FS_I(inode)->extent_tree[type]; in __destroy_extent_tree() 1139 F2FS_I(inode)->extent_tree[type] = NULL; in __destroy_extent_tree()
|
D | inline.c | 50 (F2FS_I(inode)->i_flags & F2FS_COMPR_FL))); in f2fs_sanity_check_inline_data() 454 F2FS_I(dir)->i_inline_xattr_size = 0; in f2fs_move_inline_dirents() 549 F2FS_I(dir)->i_inline_xattr_size = 0; in f2fs_move_rehashed_dirents() 569 if (!F2FS_I(dir)->i_dir_level) in do_convert_inline_dir() 644 f2fs_down_write_nested(&F2FS_I(inode)->i_sem, in f2fs_add_inline_entry() 674 f2fs_up_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry()
|
D | data.c | 1889 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in f2fs_xattr_fiemap() 1983 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() 2421 .log_cluster_size = F2FS_I(inode)->i_log_cluster_size, in f2fs_mpage_readpages() 2422 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages() 2708 set_new_dnode(&dn, F2FS_I(inode)->cow_inode, NULL, NULL, 0); in f2fs_do_write_data_page() 2942 spin_lock(&F2FS_I(inode)->i_size_lock); in f2fs_write_single_data_page() 2943 if (F2FS_I(inode)->last_disk_size < psize) in f2fs_write_single_data_page() 2944 F2FS_I(inode)->last_disk_size = psize; in f2fs_write_single_data_page() 2945 spin_unlock(&F2FS_I(inode)->i_size_lock); in f2fs_write_single_data_page() 2967 !F2FS_I(inode)->wb_task && allow_balance) in f2fs_write_single_data_page() [all …]
|
D | verity.c | 206 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_end_enable_verity() 214 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_end_enable_verity()
|
D | recovery.c | 312 if (!projid_eq(kprojid, F2FS_I(inode)->i_projid)) { in recover_inode() 317 F2FS_I(inode)->i_projid = kprojid; in recover_inode() 330 F2FS_I(inode)->i_advise = raw->i_advise; in recover_inode() 331 F2FS_I(inode)->i_flags = le32_to_cpu(raw->i_flags); in recover_inode() 333 F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN] = in recover_inode()
|
D | xattr.h | 76 #define XATTR_SIZE(i) ((F2FS_I(i)->i_xattr_nid ? \
|
D | checkpoint.c | 1016 list_add_tail(&F2FS_I(inode)->dirty_list, &sbi->inode_list[type]); in __add_dirty_inode() 1027 list_del_init(&F2FS_I(inode)->dirty_list); in __remove_dirty_inode() 1104 F2FS_I(inode)->cp_task = current; in f2fs_sync_dirty_inodes() 1105 F2FS_I(inode)->wb_task = current; in f2fs_sync_dirty_inodes() 1109 F2FS_I(inode)->wb_task = NULL; in f2fs_sync_dirty_inodes() 1111 F2FS_I(inode)->cp_task = NULL; in f2fs_sync_dirty_inodes()
|
D | super.c | 1532 if (sync && list_empty(&F2FS_I(inode)->gdirty_list)) { in f2fs_inode_dirtied() 1533 list_add_tail(&F2FS_I(inode)->gdirty_list, in f2fs_inode_dirtied() 1550 if (!list_empty(&F2FS_I(inode)->gdirty_list)) { in f2fs_inode_synced() 1551 list_del_init(&F2FS_I(inode)->gdirty_list); in f2fs_inode_synced() 1582 kmem_cache_free(f2fs_inode_cachep, F2FS_I(inode)); in f2fs_free_inode() 1875 f2fs_statfs_project(sb, F2FS_I(dentry->d_inode)->i_projid, buf); in f2fs_statfs() 2761 return F2FS_I(inode)->i_dquot; in f2fs_get_dquots() 2766 return &F2FS_I(inode)->i_reserved_quota; in f2fs_get_reserved_space() 2832 if ((F2FS_I(qf_inode)->i_flags & qf_flag) != qf_flag) { in f2fs_quota_enable() 2833 F2FS_I(qf_inode)->i_flags |= qf_flag; in f2fs_quota_enable() [all …]
|
D | acl.c | 215 mode = F2FS_I(inode)->i_acl_mode; in f2fs_acl_update_mode()
|
D | gc.c | 1577 &F2FS_I(inode)->i_gc_rwsem[WRITE])) { in gc_data_segment() 1589 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in gc_data_segment() 1600 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in gc_data_segment() 1614 struct f2fs_inode_info *fi = F2FS_I(inode); in gc_data_segment()
|
D | node.c | 868 F2FS_I(dn->inode)->i_cluster_size, in f2fs_get_dnode_of_data() 1207 nid_t nid = F2FS_I(inode)->i_xattr_nid; in f2fs_truncate_xattr_node() 1877 clean = list_empty(&F2FS_I(inode)->gdirty_list); in f2fs_match_ino() 2719 nid_t prev_xnid = F2FS_I(inode)->i_xattr_nid; in f2fs_recover_xattr_data()
|
D | segment.c | 190 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_abort_atomic_write() 201 F2FS_I(inode)->atomic_write_task = NULL; in f2fs_abort_atomic_write() 259 dec_valid_block_count(sbi, F2FS_I(inode)->cow_inode, count); in __replace_atomic_write_block() 267 trace_f2fs_replace_atomic_write_block(inode, F2FS_I(inode)->cow_inode, in __replace_atomic_write_block() 299 struct f2fs_inode_info *fi = F2FS_I(inode); in __f2fs_commit_atomic_write() 379 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_commit_atomic_write()
|
/linux-6.6.21/include/trace/events/ |
D | f2fs.h | 190 __entry->pino = F2FS_I(inode)->i_pino; 195 __entry->advise = F2FS_I(inode)->i_advise;
|