Lines Matching refs:F2FS_I

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()
838 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_getattr()
998 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_setattr()
1010 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_setattr()
1014 spin_lock(&F2FS_I(inode)->i_size_lock); in f2fs_setattr()
1016 F2FS_I(inode)->last_disk_size = i_size_read(inode); in f2fs_setattr()
1017 spin_unlock(&F2FS_I(inode)->i_size_lock); in f2fs_setattr()
1027 inode->i_mode = F2FS_I(inode)->i_acl_mode; in f2fs_setattr()
1152 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_punch_hole()
1162 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_punch_hole()
1397 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_do_collapse()
1407 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_do_collapse()
1552 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_zero_range()
1566 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_zero_range()
1578 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_zero_range()
1652 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_insert_range()
1670 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_insert_range()
1883 if (F2FS_I(inode)->atomic_write_task == current && in f2fs_file_flush()
1895 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_setflags_common()
1929 f2fs_down_write(&F2FS_I(inode)->i_sem); in f2fs_setflags_common()
1933 f2fs_up_write(&F2FS_I(inode)->i_sem); in f2fs_setflags_common()
1937 f2fs_up_write(&F2FS_I(inode)->i_sem); in f2fs_setflags_common()
2054 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_ioc_start_atomic_write()
2870 f2fs_down_write(&F2FS_I(src)->i_gc_rwsem[WRITE]); in f2fs_move_file_range()
2873 if (!f2fs_down_write_trylock(&F2FS_I(dst)->i_gc_rwsem[WRITE])) in f2fs_move_file_range()
2891 f2fs_up_write(&F2FS_I(dst)->i_gc_rwsem[WRITE]); in f2fs_move_file_range()
2893 f2fs_up_write(&F2FS_I(src)->i_gc_rwsem[WRITE]); in f2fs_move_file_range()
3058 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_ioc_setproject()
3120 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_fileattr_get()
3171 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_pin_file_control()
3236 ret = F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN]; in f2fs_ioc_set_pin_file()
3251 pin = F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN]; in f2fs_ioc_get_pin_file()
3257 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_precache_extents()
3414 *blocks = atomic_read(&F2FS_I(inode)->i_compr_blocks); in f2fs_get_compress_blocks()
3436 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in release_compress_blocks()
3530 if (!atomic_read(&F2FS_I(inode)->i_compr_blocks)) { in f2fs_release_compress_blocks()
3539 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_release_compress_blocks()
3562 count = round_up(count, F2FS_I(inode)->i_cluster_size); in f2fs_release_compress_blocks()
3576 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_release_compress_blocks()
3585 atomic_read(&F2FS_I(inode)->i_compr_blocks)) { in f2fs_release_compress_blocks()
3592 atomic_read(&F2FS_I(inode)->i_compr_blocks)); in f2fs_release_compress_blocks()
3602 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in reserve_compress_blocks()
3682 if (atomic_read(&F2FS_I(inode)->i_compr_blocks)) in f2fs_reserve_compress_blocks()
3694 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_reserve_compress_blocks()
3717 count = round_up(count, F2FS_I(inode)->i_cluster_size); in f2fs_reserve_compress_blocks()
3731 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_reserve_compress_blocks()
3746 atomic_read(&F2FS_I(inode)->i_compr_blocks)) { in f2fs_reserve_compress_blocks()
3753 atomic_read(&F2FS_I(inode)->i_compr_blocks)); in f2fs_reserve_compress_blocks()
3849 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_sec_trim_file()
3940 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_sec_trim_file()
3963 option.algorithm = F2FS_I(inode)->i_compress_algorithm; in f2fs_ioc_get_compress_option()
3964 option.log_cluster_size = F2FS_I(inode)->i_log_cluster_size; in f2fs_ioc_get_compress_option()
4001 f2fs_down_write(&F2FS_I(inode)->i_sem); in f2fs_ioc_set_compress_option()
4012 F2FS_I(inode)->i_compress_algorithm = option.algorithm; in f2fs_ioc_set_compress_option()
4013 F2FS_I(inode)->i_log_cluster_size = option.log_cluster_size; in f2fs_ioc_set_compress_option()
4014 F2FS_I(inode)->i_cluster_size = BIT(option.log_cluster_size); in f2fs_ioc_set_compress_option()
4016 if (F2FS_I(inode)->i_compress_algorithm == COMPRESS_ZSTD) in f2fs_ioc_set_compress_option()
4017 F2FS_I(inode)->i_compress_level = F2FS_ZSTD_DEFAULT_CLEVEL; in f2fs_ioc_set_compress_option()
4019 F2FS_I(inode)->i_compress_level = 0; in f2fs_ioc_set_compress_option()
4023 F2FS_I(inode)->i_compress_level = F2FS_OPTION(sbi).compress_level; in f2fs_ioc_set_compress_option()
4030 f2fs_up_write(&F2FS_I(inode)->i_sem); in f2fs_ioc_set_compress_option()
4075 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_ioc_decompress_file()
4157 int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_ioc_compress_file()
4387 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_dio_read_iter()
4651 struct f2fs_inode_info *fi = F2FS_I(inode); in f2fs_dio_write_iter()
4816 f2fs_down_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_file_write_iter()
4821 f2fs_up_write(&F2FS_I(inode)->i_gc_rwsem[WRITE]); in f2fs_file_write_iter()