/fs/f2fs/ |
D | inode.c | 34 unsigned int flags = F2FS_I(inode)->i_flags; in f2fs_set_inode_flags() 199 struct f2fs_inode_info *fi = F2FS_I(inode); in sanity_check_inode() 266 if (F2FS_I(inode)->extent_tree) { in sanity_check_inode() 267 struct extent_info *ei = &F2FS_I(inode)->extent_tree->largest; in sanity_check_inode() 308 struct f2fs_inode_info *fi = F2FS_I(inode); in do_read_inode() 421 F2FS_I(inode)->i_disk_time[0] = inode->i_atime; in do_read_inode() 422 F2FS_I(inode)->i_disk_time[1] = inode->i_ctime; in do_read_inode() 423 F2FS_I(inode)->i_disk_time[2] = inode->i_mtime; in do_read_inode() 424 F2FS_I(inode)->i_disk_time[3] = F2FS_I(inode)->i_crtime; in do_read_inode() 514 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_inode() [all …]
|
D | namei.c | 53 F2FS_I(inode)->i_crtime = current_time(inode); in f2fs_new_inode() 57 F2FS_I(inode)->i_current_depth = 1; in f2fs_new_inode() 66 (F2FS_I(dir)->i_flags & F2FS_PROJINHERIT_FL)) in f2fs_new_inode() 67 F2FS_I(inode)->i_projid = F2FS_I(dir)->i_projid; in f2fs_new_inode() 69 F2FS_I(inode)->i_projid = make_kprojid(&init_user_ns, in f2fs_new_inode() 85 F2FS_I(inode)->i_extra_isize = F2FS_TOTAL_EXTRA_ATTR_SIZE; in f2fs_new_inode() 105 F2FS_I(inode)->i_inline_xattr_size = xattr_size; in f2fs_new_inode() 113 F2FS_I(inode)->i_flags = in f2fs_new_inode() 114 f2fs_mask_flags(mode, F2FS_I(dir)->i_flags & F2FS_FL_INHERITED); in f2fs_new_inode() 117 F2FS_I(inode)->i_flags |= F2FS_INDEX_FL; in f2fs_new_inode() [all …]
|
D | xattr.c | 85 *((char *)buffer) = F2FS_I(inode)->i_advise; in f2fs_xattr_advise_get() 94 unsigned char old_advise = F2FS_I(inode)->i_advise; in f2fs_xattr_advise_set() 109 F2FS_I(inode)->i_advise = new_advise; in f2fs_xattr_advise_set() 278 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in read_xattr_block() 301 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in lookup_all_xattrs() 358 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in read_all_xattrs() 409 if (hsize > inline_size && !F2FS_I(inode)->i_xattr_nid) in write_all_xattrs() 443 if (F2FS_I(inode)->i_xattr_nid) { in write_all_xattrs() 444 xpage = f2fs_get_node_page(sbi, F2FS_I(inode)->i_xattr_nid); in write_all_xattrs() 495 down_read(&F2FS_I(inode)->i_xattr_sem); in f2fs_getxattr() [all …]
|
D | file.c | 38 down_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_filemap_fault() 40 up_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_filemap_fault() 63 down_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_vm_page_mkwrite() 113 up_read(&F2FS_I(inode)->i_mmap_sem); in f2fs_vm_page_mkwrite() 158 else if (!f2fs_is_checkpointed_node(sbi, F2FS_I(inode)->i_pino)) in need_do_checkpoint() 166 f2fs_exist_written_data(sbi, F2FS_I(inode)->i_pino, in need_do_checkpoint() 186 struct f2fs_inode_info *fi = F2FS_I(inode); in try_to_fix_pino() 259 down_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file() 261 up_read(&F2FS_I(inode)->i_sem); in f2fs_do_sync_file() 695 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_getattr() [all …]
|
D | dir.c | 162 nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); in find_in_level() 165 bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, in find_in_level() 192 if (!de && room && F2FS_I(dir)->chash != namehash) { in find_in_level() 193 F2FS_I(dir)->chash = namehash; in find_in_level() 194 F2FS_I(dir)->clevel = level; in find_in_level() 219 max_depth = F2FS_I(dir)->i_current_depth; in __f2fs_find_entry() 237 F2FS_I(dir)->task = current; in __f2fs_find_entry() 441 if (F2FS_I(dir)->i_current_depth != current_depth) in f2fs_update_parent_metadata() 510 current_depth = F2FS_I(dir)->i_current_depth; in f2fs_add_regular_entry() 511 if (F2FS_I(dir)->chash == dentry_hash) { in f2fs_add_regular_entry() [all …]
|
D | f2fs.h | 1465 static inline struct f2fs_inode_info *F2FS_I(struct inode *inode) in F2FS_I() function 1705 block_t xattr_block = F2FS_I(inode)->i_xattr_nid ? 1 : 0; in F2FS_HAS_BLOCKS() 1835 atomic_inc(&F2FS_I(inode)->dirty_pages); in inode_inc_dirty_pages() 1853 atomic_dec(&F2FS_I(inode)->dirty_pages); in inode_dec_dirty_pages() 1867 return atomic_read(&F2FS_I(inode)->dirty_pages); in get_dirty_pages() 2426 if (!test_bit(flag, &F2FS_I(inode)->flags)) in set_inode_flag() 2427 set_bit(flag, &F2FS_I(inode)->flags); in set_inode_flag() 2433 return test_bit(flag, &F2FS_I(inode)->flags); in is_inode_flag_set() 2438 if (test_bit(flag, &F2FS_I(inode)->flags)) in clear_inode_flag() 2439 clear_bit(flag, &F2FS_I(inode)->flags); in clear_inode_flag() [all …]
|
D | extent_cache.c | 280 F2FS_I(inode)->extent_tree = et; in __grab_extent_tree() 371 if (!F2FS_I(inode)->extent_tree) in f2fs_init_extent_tree() 381 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_lookup_extent_tree() 501 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_update_extent_tree_range() 711 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_destroy_extent_node() 727 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_drop_extent_tree() 749 struct extent_tree *et = F2FS_I(inode)->extent_tree; in f2fs_destroy_extent_tree() 775 F2FS_I(inode)->extent_tree = NULL; in f2fs_destroy_extent_tree()
|
D | recovery.c | 262 if (!projid_eq(kprojid, F2FS_I(inode)->i_projid)) { in recover_inode() 267 F2FS_I(inode)->i_projid = kprojid; in recover_inode() 280 F2FS_I(inode)->i_advise = raw->i_advise; in recover_inode() 281 F2FS_I(inode)->i_flags = le32_to_cpu(raw->i_flags); in recover_inode() 283 F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN] = in recover_inode()
|
D | gc.c | 744 F2FS_I(inode)->i_gc_failures[GC_FAILURE_ATOMIC]++; in move_data_block() 891 F2FS_I(inode)->i_gc_failures[GC_FAILURE_ATOMIC]++; in move_data_page() 1018 &F2FS_I(inode)->i_gc_rwsem[WRITE])) { in gc_data_segment() 1030 up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in gc_data_segment() 1041 up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in gc_data_segment() 1055 struct f2fs_inode_info *fi = F2FS_I(inode); in gc_data_segment()
|
D | data.c | 1387 nid_t xnid = F2FS_I(inode)->i_xattr_nid; in f2fs_xattr_fiemap() 2048 down_write(&F2FS_I(inode)->i_sem); in __write_data_page() 2049 if (F2FS_I(inode)->last_disk_size < psize) in __write_data_page() 2050 F2FS_I(inode)->last_disk_size = psize; in __write_data_page() 2051 up_write(&F2FS_I(inode)->i_sem); in __write_data_page() 2346 F2FS_I(inode)->cp_task == current ? in f2fs_write_data_pages() 2356 down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_write_failed() 2357 down_write(&F2FS_I(inode)->i_mmap_sem); in f2fs_write_failed() 2363 up_write(&F2FS_I(inode)->i_mmap_sem); in f2fs_write_failed() 2364 up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_write_failed() [all …]
|
D | inline.c | 540 if (!F2FS_I(dir)->i_dir_level) in f2fs_convert_inline_dir() 577 down_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry() 602 up_write(&F2FS_I(inode)->i_sem); in f2fs_add_inline_entry()
|
D | super.c | 953 if (sync && list_empty(&F2FS_I(inode)->gdirty_list)) { in f2fs_inode_dirtied() 954 list_add_tail(&F2FS_I(inode)->gdirty_list, in f2fs_inode_dirtied() 971 if (!list_empty(&F2FS_I(inode)->gdirty_list)) { in f2fs_inode_synced() 972 list_del_init(&F2FS_I(inode)->gdirty_list); in f2fs_inode_synced() 1006 kmem_cache_free(f2fs_inode_cachep, F2FS_I(inode)); in f2fs_i_callback() 1261 f2fs_statfs_project(sb, F2FS_I(dentry->d_inode)->i_projid, buf); in f2fs_statfs() 1822 return F2FS_I(inode)->i_dquot; in f2fs_get_dquots() 1827 return &F2FS_I(inode)->i_reserved_quota; in f2fs_get_reserved_space() 2002 F2FS_I(inode)->i_flags |= F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL; in f2fs_quota_on() 2027 F2FS_I(inode)->i_flags &= ~(F2FS_NOATIME_FL | F2FS_IMMUTABLE_FL); in f2fs_quota_off() [all …]
|
D | checkpoint.c | 932 list_add_tail(&F2FS_I(inode)->dirty_list, in __add_dirty_inode() 944 list_del_init(&F2FS_I(inode)->dirty_list); in __remove_dirty_inode() 1017 F2FS_I(inode)->cp_task = current; in f2fs_sync_dirty_inodes() 1022 F2FS_I(inode)->cp_task = NULL; in f2fs_sync_dirty_inodes()
|
D | segment.c | 189 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_register_inmem_page() 327 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_drop_inmem_pages() 350 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_drop_inmem_page() 380 struct f2fs_inode_info *fi = F2FS_I(inode); in __f2fs_commit_inmem_pages() 462 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_commit_inmem_pages()
|
D | node.c | 1128 nid_t nid = F2FS_I(inode)->i_xattr_nid; in f2fs_truncate_xattr_node() 2484 nid_t prev_xnid = F2FS_I(inode)->i_xattr_nid; in f2fs_recover_xattr_data()
|