Home
last modified time | relevance | path

Searched refs:F2FS_I_SB (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/fs/f2fs/
Dxattr.c276 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in read_inline_xattr()
298 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in read_xattr_block()
332 txattr_addr = xattr_alloc(F2FS_I_SB(inode), *base_size, is_inline); in lookup_all_xattrs()
366 f2fs_err(F2FS_I_SB(inode), "inode (%lu) has corrupted xattr", in lookup_all_xattrs()
368 set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_FSCK); in lookup_all_xattrs()
370 f2fs_handle_error(F2FS_I_SB(inode), in lookup_all_xattrs()
383 xattr_free(F2FS_I_SB(inode), txattr_addr, *is_inline); in lookup_all_xattrs()
397 txattr_addr = f2fs_kzalloc(F2FS_I_SB(inode), in read_all_xattrs()
433 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in write_all_xattrs()
555 xattr_free(F2FS_I_SB(inode), base_addr, is_inline); in f2fs_getxattr()
[all …]
Dfile.c46 f2fs_update_iostat(F2FS_I_SB(inode), inode, in f2fs_filemap_fault()
58 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_vm_page_mkwrite()
194 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in need_do_checkpoint()
253 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_do_sync_file()
391 if (unlikely(f2fs_cp_error(F2FS_I_SB(file_inode(file))))) in f2fs_sync_file()
470 !f2fs_is_valid_blkaddr(F2FS_I_SB(inode), in f2fs_seek_block()
525 if (unlikely(f2fs_cp_error(F2FS_I_SB(inode)))) in f2fs_file_mmap()
558 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in f2fs_truncate_data_blocks_range()
663 f2fs_bug_on(F2FS_I_SB(inode), cache_only && IS_ENCRYPTED(inode)); in truncate_partial_data_page()
672 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_do_truncate_blocks()
[all …]
Dcompress.c28 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in page_array_alloc()
33 GFP_F2FS_ZERO, false, F2FS_I_SB(inode)); in page_array_alloc()
39 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in page_array_free()
167 f2fs_bug_on(F2FS_I_SB(cc->inode), 1); in f2fs_compress_ctx_add_page()
178 cc->private = f2fs_kvmalloc(F2FS_I_SB(cc->inode), in lzo_init_compress_ctx()
201 KERN_ERR, F2FS_I_SB(cc->inode)->sb->s_id, ret); in lzo_compress_pages()
215 KERN_ERR, F2FS_I_SB(dic->inode)->sb->s_id, ret); in lzo_decompress_pages()
222 F2FS_I_SB(dic->inode)->sb->s_id, in lzo_decompress_pages()
248 cc->private = f2fs_kvmalloc(F2FS_I_SB(cc->inode), size, GFP_NOFS); in lz4_init_compress_ctx()
312 KERN_ERR, F2FS_I_SB(dic->inode)->sb->s_id, ret); in lz4_decompress_pages()
[all …]
Dinline.c55 if (!test_opt(F2FS_I_SB(inode), INLINE_DENTRY)) in f2fs_may_inline_dentry()
104 ipage = f2fs_get_node_page(F2FS_I_SB(inode), inode->i_ino); in f2fs_read_inline_data()
130 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
202 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_convert_inline_inode()
259 f2fs_bug_on(F2FS_I_SB(inode), page->index); in f2fs_write_inline_data()
278 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_recover_inline_data()
454 if (!f2fs_sb_has_flexible_inline_xattr(F2FS_I_SB(dir)) && in f2fs_move_inline_dirents()
524 backup_dentry = f2fs_kmalloc(F2FS_I_SB(dir), in f2fs_move_rehashed_dirents()
549 if (!f2fs_sb_has_flexible_inline_xattr(F2FS_I_SB(dir)) && in f2fs_move_rehashed_dirents()
579 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_try_convert_inline_dir()
[all …]
Dverity.c150 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_end_enable_verity()
233 f2fs_warn(F2FS_I_SB(inode), "unknown verity xattr format"); in f2fs_get_verity_descriptor()
242 f2fs_warn(F2FS_I_SB(inode), "invalid verity xattr"); in f2fs_get_verity_descriptor()
243 f2fs_handle_error(F2FS_I_SB(inode), in f2fs_get_verity_descriptor()
Dinode.c207 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in sanity_check_inode()
350 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in do_read_inode()
657 if (f2fs_sb_has_flexible_inline_xattr(F2FS_I_SB(inode))) in f2fs_update_inode()
661 if (f2fs_sb_has_project_quota(F2FS_I_SB(inode)) && in f2fs_update_inode()
671 if (f2fs_sb_has_inode_crtime(F2FS_I_SB(inode)) && in f2fs_update_inode()
680 if (f2fs_sb_has_compression(F2FS_I_SB(inode)) && in f2fs_update_inode()
703 f2fs_inode_chksum_set(F2FS_I_SB(inode), node_page); in f2fs_update_inode()
709 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_update_inode_page()
731 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_write_inode()
762 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_evict_inode()
[all …]
Dnamei.c183 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_new_inode()
340 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_create()
390 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_link()
450 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in __recover_dot_dentries()
514 unsigned int root_ino = F2FS_ROOT_INO(F2FS_I_SB(dir)); in f2fs_lookup()
565 f2fs_warn(F2FS_I_SB(inode), "Inconsistent encryption contexts: %lu/%lu", in f2fs_lookup()
595 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_unlink()
669 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_symlink()
749 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_mkdir()
804 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_mknod()
[all …]
Ddata.c63 sbi = F2FS_I_SB(inode); in __is_cp_guaranteed()
84 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __read_io_type()
1029 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_grab_read_bio()
1077 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_submit_page_read()
1137 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in f2fs_reserve_new_blocks()
1223 if (!f2fs_is_valid_blkaddr(F2FS_I_SB(inode), dn.data_blkaddr, in f2fs_get_read_data_page()
1226 f2fs_handle_error(F2FS_I_SB(inode), in f2fs_get_read_data_page()
1244 !f2fs_is_valid_blkaddr(F2FS_I_SB(inode), in f2fs_get_read_data_page()
1248 f2fs_handle_error(F2FS_I_SB(inode), in f2fs_get_read_data_page()
1384 f2fs_bug_on(F2FS_I_SB(inode), ipage); in f2fs_get_new_data_page()
[all …]
Ddir.c410 f2fs_warn(F2FS_I_SB(dir), "Corrupted max_depth of %lu: %u", in __f2fs_find_entry()
602 page = f2fs_get_node_page(F2FS_I_SB(dir), inode->i_ino); in f2fs_init_inode_metadata()
621 f2fs_remove_orphan_inode(F2FS_I_SB(dir), inode->i_ino); in f2fs_init_inode_metadata()
731 if (time_to_inject(F2FS_I_SB(dir), FAULT_DIR_DEPTH)) { in f2fs_add_regular_entry()
732 f2fs_show_injection_info(F2FS_I_SB(dir), FAULT_DIR_DEPTH); in f2fs_add_regular_entry()
814 f2fs_update_time(F2FS_I_SB(dir), REQ_TIME); in f2fs_add_dentry()
871 f2fs_update_time(F2FS_I_SB(inode), REQ_TIME); in f2fs_do_tmpfile()
879 struct f2fs_sb_info *sbi = F2FS_I_SB(dir); in f2fs_drop_nlink()
912 f2fs_update_time(F2FS_I_SB(dir), REQ_TIME); in f2fs_delete_entry()
914 if (F2FS_OPTION(F2FS_I_SB(dir)).fsync_mode == FSYNC_MODE_STRICT) in f2fs_delete_entry()
[all …]
Dextent_cache.c288 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __grab_extent_tree()
364 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __f2fs_init_extent_tree()
413 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_lookup_extent_tree()
534 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_update_extent_tree_range()
671 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_update_extent_tree_range_compressed()
785 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_destroy_extent_node()
801 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_drop_extent_tree()
822 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_destroy_extent_tree()
Df2fs.h1998 static inline struct f2fs_sb_info *F2FS_I_SB(struct inode *inode) in F2FS_I_SB() function
2005 return F2FS_I_SB(mapping->host); in F2FS_M_SB()
2430 inc_page_count(F2FS_I_SB(inode), S_ISDIR(inode->i_mode) ? in inode_inc_dirty_pages()
2433 inc_page_count(F2FS_I_SB(inode), F2FS_DIRTY_QDATA); in inode_inc_dirty_pages()
2448 dec_page_count(F2FS_I_SB(inode), S_ISDIR(inode->i_mode) ? in inode_dec_dirty_pages()
2451 dec_page_count(F2FS_I_SB(inode), F2FS_DIRTY_QDATA); in inode_dec_dirty_pages()
2456 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in inc_atomic_write_cnt()
2469 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in release_atomic_write_cnt()
3176 int compress_mode = F2FS_OPTION(F2FS_I_SB(inode)).compress_mode; in f2fs_need_compress_data()
3324 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_skip_inode_update()
[all …]
Drecovery.c183 entry = add_fsync_inode(F2FS_I_SB(inode), dir_list, in recover_dentry()
217 err = f2fs_acquire_orphan_inode(F2FS_I_SB(inode)); in recover_dentry()
242 f2fs_notice(F2FS_I_SB(inode), "%s: ino = %x, name = %s, dir = %lx, err = %d", in recover_dentry()
271 set_sbi_flag(F2FS_I_SB(inode), SBI_QUOTA_NEED_REPAIR); in recover_quota_data()
303 if (f2fs_sb_has_project_quota(F2FS_I_SB(inode)) && in recover_inode()
345 f2fs_notice(F2FS_I_SB(inode), "recover_inode: ino = %x, name = %s, inline = %x", in recover_inode()
Dacl.c181 value = f2fs_kmalloc(F2FS_I_SB(inode), retval, GFP_F2FS_ZERO); in __f2fs_get_acl()
262 value = f2fs_acl_to_disk(F2FS_I_SB(inode), acl, &size); in __f2fs_set_acl()
282 if (unlikely(f2fs_cp_error(F2FS_I_SB(inode)))) in f2fs_set_acl()
Dnode.c668 f2fs_bug_on(F2FS_I_SB(dn->inode), 1); in f2fs_get_next_page_offset()
759 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in f2fs_get_dnode_of_data()
887 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in truncate_node()
931 page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); in truncate_dnode()
964 page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); in truncate_nodes()
1042 pages[i] = f2fs_get_node_page(F2FS_I_SB(dn->inode), nid[i]); in truncate_partial_nodes()
1092 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_truncate_inode_blocks()
1190 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_truncate_xattr_node()
1241 if (unlikely(f2fs_cp_error(F2FS_I_SB(inode)))) { in f2fs_remove_inode_page()
1247 f2fs_warn(F2FS_I_SB(inode), in f2fs_remove_inode_page()
[all …]
Dgc.c699 if (!f2fs_pin_section(F2FS_I_SB(inode), segno)) in f2fs_gc_pinned_control()
1140 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in ra_data_block()
1235 .sbi = F2FS_I_SB(inode), in move_data_block()
1261 if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { in move_data_block()
1404 if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { in move_data_page()
1422 .sbi = F2FS_I_SB(inode), in move_data_page()
Dcheckpoint.c646 __add_ino_entry(F2FS_I_SB(inode), inode->i_ino, 0, ORPHAN_INO); in f2fs_add_orphan_inode()
1010 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __add_dirty_inode()
1030 stat_dec_dirty_inode(F2FS_I_SB(inode), type); in __remove_dirty_inode()
1035 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_update_dirty_folio()
1053 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_remove_dirty_inode()
Dsuper.c1391 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_drop_inode()
1427 f2fs_submit_merged_write_cond(F2FS_I_SB(inode), in f2fs_drop_inode()
1451 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_inode_dirtied()
1472 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_inode_synced()
1485 stat_dec_dirty_inode(F2FS_I_SB(inode), DIRTY_META); in f2fs_inode_synced()
1496 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_dirty_inode()
2570 if (time_to_inject(F2FS_I_SB(inode), FAULT_DQUOT_INIT)) { in f2fs_dquot_initialize()
2571 f2fs_show_injection_info(F2FS_I_SB(inode), FAULT_DQUOT_INIT); in f2fs_dquot_initialize()
3011 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_set_context()
Dsegment.c208 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __replace_atomic_write_block()
272 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in __f2fs_commit_atomic_write()
350 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_commit_atomic_write()
3611 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_wait_on_block_writeback()
3630 struct f2fs_sb_info *sbi = F2FS_I_SB(inode); in f2fs_wait_on_block_writeback_range()