/fs/f2fs/ |
D | inode.c | 38 unsigned int flags = F2FS_I(inode)->i_flags; in f2fs_set_inode_flags() 206 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() 263 if (F2FS_I(inode)->extent_tree) { in sanity_check_inode() 264 struct extent_info *ei = &F2FS_I(inode)->extent_tree->largest; in sanity_check_inode() 339 struct f2fs_inode_info *fi = F2FS_I(inode); in do_read_inode() 468 F2FS_I(inode)->i_disk_time[0] = inode->i_atime; in do_read_inode() 469 F2FS_I(inode)->i_disk_time[1] = inode->i_ctime; in do_read_inode() 470 F2FS_I(inode)->i_disk_time[2] = inode->i_mtime; in do_read_inode() 471 F2FS_I(inode)->i_disk_time[3] = F2FS_I(inode)->i_crtime; in do_read_inode() 588 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_inode() [all …]
|
D | namei.c | 54 F2FS_I(inode)->i_crtime = inode->i_mtime; in f2fs_new_inode() 58 F2FS_I(inode)->i_current_depth = 1; in f2fs_new_inode() 67 (F2FS_I(dir)->i_flags & F2FS_PROJINHERIT_FL)) in f2fs_new_inode() 68 F2FS_I(inode)->i_projid = F2FS_I(dir)->i_projid; in f2fs_new_inode() 70 F2FS_I(inode)->i_projid = make_kprojid(&init_user_ns, in f2fs_new_inode() 88 F2FS_I(inode)->i_extra_isize = F2FS_TOTAL_EXTRA_ATTR_SIZE; in f2fs_new_inode() 106 F2FS_I(inode)->i_inline_xattr_size = xattr_size; in f2fs_new_inode() 110 F2FS_I(inode)->i_flags = in f2fs_new_inode() 111 f2fs_mask_flags(mode, F2FS_I(dir)->i_flags & F2FS_FL_INHERITED); in f2fs_new_inode() 114 F2FS_I(inode)->i_flags |= F2FS_INDEX_FL; in f2fs_new_inode() [all …]
|
D | file.c | 44 f2fs_down_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_filemap_fault() 46 f2fs_up_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_filemap_fault() 107 f2fs_down_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_vm_page_mkwrite() 165 f2fs_up_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_vm_page_mkwrite() 215 else if (!f2fs_is_checkpointed_node(sbi, F2FS_I(inode)->i_pino)) in need_do_checkpoint() 223 f2fs_exist_written_data(sbi, F2FS_I(inode)->i_pino, in need_do_checkpoint() 243 struct f2fs_inode_info *fi = F2FS_I(inode); in try_to_fix_pino() 327 f2fs_down_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file() 329 f2fs_up_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file() 570 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() [all …]
|
D | dir.c | 346 nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); in find_in_level() 349 bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, in find_in_level() 381 if (!de && room && F2FS_I(dir)->chash != fname->hash) { in find_in_level() 382 F2FS_I(dir)->chash = fname->hash; in find_in_level() 383 F2FS_I(dir)->clevel = level; in find_in_level() 408 max_depth = F2FS_I(dir)->i_current_depth; in __f2fs_find_entry() 424 F2FS_I(dir)->task = current; in __f2fs_find_entry() 646 if (F2FS_I(dir)->i_current_depth != current_depth) in f2fs_update_parent_metadata() 726 current_depth = F2FS_I(dir)->i_current_depth; in f2fs_add_regular_entry() 727 if (F2FS_I(dir)->chash == fname->hash) { in f2fs_add_regular_entry() [all …]
|
D | xattr.c | 106 *((char *)buffer) = F2FS_I(inode)->i_advise; in f2fs_xattr_advise_get() 115 unsigned char old_advise = F2FS_I(inode)->i_advise; in f2fs_xattr_advise_set() 130 F2FS_I(inode)->i_advise = new_advise; in f2fs_xattr_advise_set() 297 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in read_xattr_block() 322 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in lookup_all_xattrs() 387 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in read_all_xattrs() 438 if (hsize > inline_size && !F2FS_I(inode)->i_xattr_nid) in write_all_xattrs() 472 if (F2FS_I(inode)->i_xattr_nid) { in write_all_xattrs() 473 xpage = f2fs_get_node_page(sbi, F2FS_I(inode)->i_xattr_nid); in write_all_xattrs() 527 f2fs_down_read(&F2FS_I(inode)->i_xattr_sem); in f2fs_getxattr() [all …]
|
D | f2fs.h | 1978 static inline struct f2fs_inode_info *F2FS_I(struct inode *inode) in F2FS_I() function 2267 block_t xattr_block = F2FS_I(inode)->i_xattr_nid ? 1 : 0; in F2FS_HAS_BLOCKS() 2419 atomic_inc(&F2FS_I(inode)->dirty_pages); in inode_inc_dirty_pages() 2437 atomic_dec(&F2FS_I(inode)->dirty_pages); in inode_dec_dirty_pages() 2451 return atomic_read(&F2FS_I(inode)->dirty_pages); in get_dirty_pages() 2989 set_bit(flag, F2FS_I(inode)->flags); in set_inode_flag() 2995 return test_bit(flag, F2FS_I(inode)->flags); in is_inode_flag_set() 3000 clear_bit(flag, F2FS_I(inode)->flags); in clear_inode_flag() 3012 F2FS_I(inode)->i_acl_mode = mode; in set_acl_inode() 3063 F2FS_I(inode)->i_current_depth = depth; in f2fs_i_depth_write() [all …]
|
D | compress.c | 243 if (F2FS_I(cc->inode)->i_compress_flag >> COMPRESS_LEVEL_OFFSET) in lz4_init_compress_ctx() 269 unsigned char level = F2FS_I(cc->inode)->i_compress_flag >> in lz4hc_compress_pages() 342 unsigned char level = F2FS_I(cc->inode)->i_compress_flag >> in zstd_init_compress_ctx() 557 return f2fs_cops[F2FS_I(inode)->i_compress_algorithm]; in f2fs_is_compress_backend_ready() 618 struct f2fs_inode_info *fi = F2FS_I(cc->inode); in f2fs_compress_pages() 739 struct f2fs_inode_info *fi = F2FS_I(dic->inode); in f2fs_decompress_cluster() 883 unsigned int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_sanity_check_cluster() 932 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in __f2fs_cluster_blocks() 934 F2FS_I(inode)->i_log_cluster_size; in __f2fs_cluster_blocks() 987 index >> F2FS_I(inode)->i_log_cluster_size, in f2fs_is_compressed_cluster() [all …]
|
D | extent_cache.c | 313 F2FS_I(inode)->extent_tree = et; in __grab_extent_tree() 406 if (!F2FS_I(inode)->extent_tree) in f2fs_init_extent_tree() 414 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_lookup_extent_tree() 535 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_extent_tree_range() 672 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_extent_tree_range_compressed() 786 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_destroy_extent_node() 802 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_drop_extent_tree() 823 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_destroy_extent_tree() 849 F2FS_I(inode)->extent_tree = NULL; in f2fs_destroy_extent_tree()
|
D | inline.c | 51 (F2FS_I(inode)->i_flags & F2FS_COMPR_FL))); in f2fs_sanity_check_inline_data() 471 F2FS_I(dir)->i_inline_xattr_size = 0; in f2fs_move_inline_dirents() 566 F2FS_I(dir)->i_inline_xattr_size = 0; in f2fs_move_rehashed_dirents() 586 if (!F2FS_I(dir)->i_dir_level) in do_convert_inline_dir() 661 f2fs_down_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry() 690 f2fs_up_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry()
|
D | data.c | 1784 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in f2fs_xattr_fiemap() 1878 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() 2325 .log_cluster_size = F2FS_I(inode)->i_log_cluster_size, in f2fs_mpage_readpages() 2326 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages() 2843 spin_lock(&F2FS_I(inode)->i_size_lock); in f2fs_write_single_data_page() 2844 if (F2FS_I(inode)->last_disk_size < psize) in f2fs_write_single_data_page() 2845 F2FS_I(inode)->last_disk_size = psize; in f2fs_write_single_data_page() 2846 spin_unlock(&F2FS_I(inode)->i_size_lock); in f2fs_write_single_data_page() 2868 !F2FS_I(inode)->wb_task && allow_balance) in f2fs_write_single_data_page() 2938 .log_cluster_size = F2FS_I(inode)->i_log_cluster_size, in f2fs_write_cache_pages() [all …]
|
D | recovery.c | 311 if (!projid_eq(kprojid, F2FS_I(inode)->i_projid)) { in recover_inode() 316 F2FS_I(inode)->i_projid = kprojid; in recover_inode() 329 F2FS_I(inode)->i_advise = raw->i_advise; in recover_inode() 330 F2FS_I(inode)->i_flags = le32_to_cpu(raw->i_flags); in recover_inode() 332 F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN] = in recover_inode()
|
D | verity.c | 205 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_end_enable_verity() 213 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_end_enable_verity()
|
D | xattr.h | 76 #define XATTR_SIZE(i) ((F2FS_I(i)->i_xattr_nid ? \
|
D | checkpoint.c | 1026 list_add_tail(&F2FS_I(inode)->dirty_list, in __add_dirty_inode() 1038 list_del_init(&F2FS_I(inode)->dirty_list); in __remove_dirty_inode() 1115 F2FS_I(inode)->cp_task = current; in f2fs_sync_dirty_inodes() 1116 F2FS_I(inode)->wb_task = current; in f2fs_sync_dirty_inodes() 1120 F2FS_I(inode)->wb_task = NULL; in f2fs_sync_dirty_inodes() 1122 F2FS_I(inode)->cp_task = NULL; in f2fs_sync_dirty_inodes()
|
D | gc.c | 1261 F2FS_I(inode)->i_gc_failures[GC_FAILURE_ATOMIC]++; in move_data_block() 1409 F2FS_I(inode)->i_gc_failures[GC_FAILURE_ATOMIC]++; in move_data_page() 1551 &F2FS_I(inode)->i_gc_rwsem[WRITE])) { in gc_data_segment() 1563 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in gc_data_segment() 1574 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in gc_data_segment() 1588 struct f2fs_inode_info *fi = F2FS_I(inode); in gc_data_segment()
|
D | super.c | 1475 if (sync && list_empty(&F2FS_I(inode)->gdirty_list)) { in f2fs_inode_dirtied() 1476 list_add_tail(&F2FS_I(inode)->gdirty_list, in f2fs_inode_dirtied() 1493 if (!list_empty(&F2FS_I(inode)->gdirty_list)) { in f2fs_inode_synced() 1494 list_del_init(&F2FS_I(inode)->gdirty_list); in f2fs_inode_synced() 1528 kmem_cache_free(f2fs_inode_cachep, F2FS_I(inode)); in f2fs_free_inode() 1798 f2fs_statfs_project(sb, F2FS_I(dentry->d_inode)->i_projid, buf); in f2fs_statfs() 2594 return F2FS_I(inode)->i_dquot; in f2fs_get_dquots() 2599 return &F2FS_I(inode)->i_reserved_quota; in f2fs_get_reserved_space() 2803 F2FS_I(inode)->i_flags |= F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL; in f2fs_quota_on() 2828 F2FS_I(inode)->i_flags &= ~(F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL); in __f2fs_quota_off() [all …]
|
D | acl.c | 211 mode = F2FS_I(inode)->i_acl_mode; in f2fs_acl_update_mode()
|
D | segment.c | 202 mutex_lock(&F2FS_I(inode)->inmem_lock); in f2fs_register_inmem_page() 203 list_add_tail(&new->list, &F2FS_I(inode)->inmem_pages); in f2fs_register_inmem_page() 205 mutex_unlock(&F2FS_I(inode)->inmem_lock); in f2fs_register_inmem_page() 328 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_drop_inmem_pages() 355 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_drop_inmem_page() 391 struct f2fs_inode_info *fi = F2FS_I(inode); in __f2fs_commit_inmem_pages() 474 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_commit_inmem_pages()
|
D | node.c | 867 F2FS_I(dn->inode)->i_cluster_size, in f2fs_get_dnode_of_data() 1196 nid_t nid = F2FS_I(inode)->i_xattr_nid; in f2fs_truncate_xattr_node() 1860 clean = list_empty(&F2FS_I(inode)->gdirty_list); in f2fs_match_ino() 2711 nid_t prev_xnid = F2FS_I(inode)->i_xattr_nid; in f2fs_recover_xattr_data()
|