/Linux-v6.6/fs/hpfs/ |
D | dir.c | 15 hpfs_lock(inode->i_sb); in hpfs_dir_release() 18 hpfs_unlock(inode->i_sb); in hpfs_dir_release() 31 struct super_block *s = i->i_sb; in hpfs_dir_lseek() 77 hpfs_lock(inode->i_sb); in hpfs_readdir() 79 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir() 80 if (hpfs_chk_sectors(inode->i_sb, inode->i_ino, 1, "dir_fnode")) { in hpfs_readdir() 84 if (hpfs_chk_sectors(inode->i_sb, hpfs_inode->i_dno, 4, "dir_dnode")) { in hpfs_readdir() 89 if (hpfs_sb(inode->i_sb)->sb_chk >= 2) { in hpfs_readdir() 93 if (!(fno = hpfs_map_fnode(inode->i_sb, inode->i_ino, &bh))) { in hpfs_readdir() 99 hpfs_error(inode->i_sb, "not a directory, fnode %08lx", in hpfs_readdir() [all …]
|
D | namei.c | 14 time64_t t = local_to_gmt(dir->i_sb, local_get_seconds(dir->i_sb)); in hpfs_update_directory_times() 39 hpfs_lock(dir->i_sb); in hpfs_mkdir() 41 fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); in hpfs_mkdir() 44 dnode = hpfs_alloc_dnode(dir->i_sb, fno, &dno, &qbh0); in hpfs_mkdir() 53 dee.creation_date = dee.write_date = dee.read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); in hpfs_mkdir() 54 result = new_inode(dir->i_sb); in hpfs_mkdir() 62 inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.creation_date)), 0); in hpfs_mkdir() 91 de = hpfs_add_de(dir->i_sb, dnode, "\001\001", 2, 0); in hpfs_mkdir() 92 de->creation_date = de->write_date = de->read_date = cpu_to_le32(local_get_seconds(dir->i_sb)); in hpfs_mkdir() 114 hpfs_unlock(dir->i_sb); in hpfs_mkdir() [all …]
|
D | inode.c | 16 struct super_block *sb = i->i_sb; in hpfs_init_inode() 48 struct super_block *sb = i->i_sb; in hpfs_read_inode() 62 if (hpfs_sb(i->i_sb)->sb_eas) { in hpfs_read_inode() 63 if ((ea = hpfs_get_ea(i->i_sb, fnode, "UID", &ea_size))) { in hpfs_read_inode() 70 if ((ea = hpfs_get_ea(i->i_sb, fnode, "GID", &ea_size))) { in hpfs_read_inode() 77 if ((ea = hpfs_get_ea(i->i_sb, fnode, "SYMLINK", &ea_size))) { in hpfs_read_inode() 89 if ((ea = hpfs_get_ea(i->i_sb, fnode, "MODE", &ea_size))) { in hpfs_read_inode() 99 if ((ea = hpfs_get_ea(i->i_sb, fnode, "DEV", &ea_size))) { in hpfs_read_inode() 128 hpfs_count_dnodes(i->i_sb, hpfs_inode->i_dno, &n_dnodes, &n_subdirs, NULL); in hpfs_read_inode() 153 } else*/ if (hpfs_sb(i->i_sb)->sb_eas >= 2) { in hpfs_write_inode_ea() [all …]
|
D | file.c | 19 hpfs_lock(inode->i_sb); in hpfs_file_release() 21 hpfs_unlock(inode->i_sb); in hpfs_file_release() 33 return sync_blockdev(inode->i_sb->s_bdev); in hpfs_file_fsync() 53 if (!(fnode = hpfs_map_fnode(inode->i_sb, inode->i_ino, &bh))) return 0; in hpfs_bmap() 54 disk_secno = hpfs_bplus_lookup(inode->i_sb, inode, &fnode->btree, file_secno, bh); in hpfs_bmap() 56 if (hpfs_chk_sectors(inode->i_sb, disk_secno, 1, "bmap")) return 0; in hpfs_bmap() 69 hpfs_lock_assert(i->i_sb); in hpfs_truncate() 74 hpfs_truncate_btree(i->i_sb, i->i_ino, 1, ((i->i_size + 511) >> 9)); in hpfs_truncate() 84 hpfs_lock(inode->i_sb); in hpfs_get_block() 89 n_secs = hpfs_search_hotfix_map_for_range(inode->i_sb, s, n_secs); in hpfs_get_block() [all …]
|
D | dnode.c | 258 hpfs_error(i->i_sb, "%s(): namelen == %d", __func__, namelen); in hpfs_add_to_dnode() 263 if (!(d = hpfs_map_dnode(i->i_sb, dno, &qbh))) { in hpfs_add_to_dnode() 269 if (hpfs_sb(i->i_sb)->sb_chk) in hpfs_add_to_dnode() 270 if (hpfs_stop_cycles(i->i_sb, dno, &c1, &c2, "hpfs_add_to_dnode")) { in hpfs_add_to_dnode() 278 copy_de(de=hpfs_add_de(i->i_sb, d, name, namelen, down_ptr), new_de); in hpfs_add_to_dnode() 301 copy_de(de = hpfs_add_de(i->i_sb, nd, name, namelen, down_ptr), new_de); in hpfs_add_to_dnode() 304 if (!(ad = hpfs_alloc_dnode(i->i_sb, le32_to_cpu(d->up), &adno, &qbh1))) { in hpfs_add_to_dnode() 305 hpfs_error(i->i_sb, "unable to alloc dnode - dnode tree will be corrupted"); in hpfs_add_to_dnode() 315 copy_de(hpfs_add_de(i->i_sb, ad, de->name, de->namelen, de->down ? de_down_pointer(de) : 0), de); in hpfs_add_to_dnode() 325 set_last_pointer(i->i_sb, ad, de->down ? de_down_pointer(de) : 0); in hpfs_add_to_dnode() [all …]
|
/Linux-v6.6/fs/reiserfs/ |
D | namei.c | 312 if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) in reiserfs_find_entry() 317 get_third_component(dir->i_sb, name, namelen), in reiserfs_find_entry() 322 search_by_entry_key(dir->i_sb, &key_to_search, in reiserfs_find_entry() 325 reiserfs_error(dir->i_sb, "zam-7001", "io error"); in reiserfs_find_entry() 361 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup() 364 reiserfs_write_lock(dir->i_sb); in reiserfs_lookup() 372 inode = reiserfs_iget(dir->i_sb, in reiserfs_lookup() 375 reiserfs_write_unlock(dir->i_sb); in reiserfs_lookup() 387 reiserfs_write_unlock(dir->i_sb); in reiserfs_lookup() 412 reiserfs_write_lock(dir->i_sb); in reiserfs_get_parent() [all …]
|
D | inode.c | 35 2 * REISERFS_QUOTA_INIT_BLOCKS(inode->i_sb); in reiserfs_evict_inode() 55 reiserfs_write_lock(inode->i_sb); in reiserfs_evict_inode() 57 if (journal_begin(&th, inode->i_sb, jbegin_count)) in reiserfs_evict_inode() 71 int depth = reiserfs_write_unlock_nested(inode->i_sb); in reiserfs_evict_inode() 73 reiserfs_write_lock_nested(inode->i_sb, depth); in reiserfs_evict_inode() 93 reiserfs_write_unlock(inode->i_sb); in reiserfs_evict_inode() 234 map_bh(bh, inode->i_sb, block); in set_block_dev_mapped() 246 block < (1 << (31 - inode->i_sb->s_blocksize_bits))) in file_capable() 302 (loff_t) block * inode->i_sb->s_blocksize + 1, TYPE_ANY, in _get_block_create_0() 305 result = search_for_position_by_key(inode->i_sb, &key, &path); in _get_block_create_0() [all …]
|
D | ioctl.c | 19 if (!reiserfs_attrs(inode->i_sb)) in reiserfs_fileattr_get() 34 reiserfs_write_lock(inode->i_sb); in reiserfs_fileattr_set() 37 if (!reiserfs_attrs(inode->i_sb)) in reiserfs_fileattr_set() 62 reiserfs_write_unlock(inode->i_sb); in reiserfs_fileattr_set() 81 reiserfs_write_lock(inode->i_sb); in reiserfs_ioctl() 119 reiserfs_write_unlock(inode->i_sb); in reiserfs_ioctl() 164 unsigned long blocksize = inode->i_sb->s_blocksize; in reiserfs_unpack() 177 int depth = reiserfs_write_unlock_nested(inode->i_sb); in reiserfs_unpack() 180 reiserfs_write_lock_nested(inode->i_sb, depth); in reiserfs_unpack() 183 reiserfs_write_lock(inode->i_sb); in reiserfs_unpack() [all …]
|
D | file.c | 53 reiserfs_write_lock(inode->i_sb); in reiserfs_file_release() 60 err = journal_begin(&th, inode->i_sb, 1); in reiserfs_file_release() 68 err = journal_join_abort(&th, inode->i_sb); in reiserfs_file_release() 81 reiserfs_warning(inode->i_sb, "clm-9001", in reiserfs_file_release() 112 reiserfs_write_unlock(inode->i_sb); in reiserfs_file_release() 158 reiserfs_write_lock(inode->i_sb); in reiserfs_sync_file() 160 reiserfs_write_unlock(inode->i_sb); in reiserfs_sync_file() 161 if (barrier_done != 1 && reiserfs_barrier_flush(inode->i_sb)) in reiserfs_sync_file() 162 blkdev_issue_flush(inode->i_sb->s_bdev); in reiserfs_sync_file() 180 struct super_block *s = inode->i_sb; in reiserfs_commit_page() [all …]
|
D | dir.c | 42 reiserfs_write_lock(inode->i_sb); in reiserfs_dir_fsync() 44 reiserfs_write_unlock(inode->i_sb); in reiserfs_dir_fsync() 55 struct dentry *privroot = REISERFS_SB(dir->i_sb)->priv_root; in is_privroot_deh() 79 reiserfs_write_lock(inode->i_sb); in reiserfs_readdir_inode() 81 reiserfs_check_lock_depth(inode->i_sb, "readdir"); in reiserfs_readdir_inode() 98 search_by_entry_key(inode->i_sb, &pos_key, &path_to_entry, in reiserfs_readdir_inode() 168 REISERFS_MAX_NAME(inode->i_sb-> in reiserfs_readdir_inode() 208 depth = reiserfs_write_unlock_nested(inode->i_sb); in reiserfs_readdir_inode() 212 reiserfs_write_lock_nested(inode->i_sb, depth); in reiserfs_readdir_inode() 218 reiserfs_write_lock_nested(inode->i_sb, depth); in reiserfs_readdir_inode() [all …]
|
/Linux-v6.6/fs/nilfs2/ |
D | namei.c | 63 inode = ino ? nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino) : NULL; in nilfs_lookup() 82 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_create() 95 err = nilfs_transaction_commit(dir->i_sb); in nilfs_create() 97 nilfs_transaction_abort(dir->i_sb); in nilfs_create() 110 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_mknod() 121 err = nilfs_transaction_commit(dir->i_sb); in nilfs_mknod() 123 nilfs_transaction_abort(dir->i_sb); in nilfs_mknod() 132 struct super_block *sb = dir->i_sb; in nilfs_symlink() 140 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_symlink() 163 err = nilfs_transaction_commit(dir->i_sb); in nilfs_symlink() [all …]
|
D | file.c | 32 err = nilfs_construct_dsync_segment(inode->i_sb, inode, in nilfs_sync_file() 35 err = nilfs_construct_segment(inode->i_sb); in nilfs_sync_file() 38 nilfs = inode->i_sb->s_fs_info; in nilfs_sync_file() 53 if (unlikely(nilfs_near_disk_full(inode->i_sb->s_fs_info))) in nilfs_page_mkwrite() 56 sb_start_pagefault(inode->i_sb); in nilfs_page_mkwrite() 93 ret = nilfs_transaction_begin(inode->i_sb, &ti, 1); in nilfs_page_mkwrite() 101 nilfs_transaction_abort(inode->i_sb); in nilfs_page_mkwrite() 105 nilfs_transaction_commit(inode->i_sb); in nilfs_page_mkwrite() 110 sb_end_pagefault(inode->i_sb); in nilfs_page_mkwrite()
|
D | ioctl.c | 144 ret = nilfs_transaction_begin(inode->i_sb, &ti, 0); in nilfs_fileattr_set() 157 return nilfs_transaction_commit(inode->i_sb); in nilfs_fileattr_set() 190 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_change_cpmode() 208 nilfs_transaction_begin(inode->i_sb, &ti, 0); in nilfs_ioctl_change_cpmode() 212 nilfs_transaction_abort(inode->i_sb); in nilfs_ioctl_change_cpmode() 214 nilfs_transaction_commit(inode->i_sb); /* never fails */ in nilfs_ioctl_change_cpmode() 245 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_delete_checkpoint() 261 nilfs_transaction_begin(inode->i_sb, &ti, 0); in nilfs_ioctl_delete_checkpoint() 264 nilfs_transaction_abort(inode->i_sb); in nilfs_ioctl_delete_checkpoint() 266 nilfs_transaction_commit(inode->i_sb); /* never fails */ in nilfs_ioctl_delete_checkpoint() [all …]
|
/Linux-v6.6/fs/ext4/ |
D | migrate.c | 96 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_ind_extent_range() 98 bh = ext4_sb_bread(inode->i_sb, pblock, 0); in update_ind_extent_range() 125 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_dind_extent_range() 127 bh = ext4_sb_bread(inode->i_sb, pblock, 0); in update_dind_extent_range() 155 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_tind_extent_range() 157 bh = ext4_sb_bread(inode->i_sb, pblock, 0); in update_tind_extent_range() 184 struct super_block *sb = inode->i_sb; in free_dind_blocks() 185 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_dind_blocks() 225 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_tind_blocks() 227 bh = ext4_sb_bread(inode->i_sb, le32_to_cpu(i_data), 0); in free_tind_blocks() [all …]
|
D | fsync.c | 91 if (test_opt(inode->i_sb, BARRIER)) in ext4_fsync_nojournal() 101 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_fsync_journal() 109 return ext4_force_commit(inode->i_sb); in ext4_fsync_journal() 135 if (unlikely(ext4_forced_shutdown(inode->i_sb))) in ext4_sync_file() 142 if (sb_rdonly(inode->i_sb)) { in ext4_sync_file() 145 if (ext4_forced_shutdown(inode->i_sb)) in ext4_sync_file() 150 if (!EXT4_SB(inode->i_sb)->s_journal) { in ext4_sync_file() 171 err = blkdev_issue_flush(inode->i_sb->s_bdev); in ext4_sync_file()
|
D | inode.c | 55 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_inode_csum() 67 if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) { in ext4_inode_csum() 78 EXT4_INODE_SIZE(inode->i_sb) - offset); in ext4_inode_csum() 89 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_verify() 91 !ext4_has_metadata_csum(inode->i_sb)) in ext4_inode_csum_verify() 96 if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE && in ext4_inode_csum_verify() 110 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_set() 112 !ext4_has_metadata_csum(inode->i_sb)) in ext4_inode_csum_set() 117 if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE && in ext4_inode_csum_set() 150 EXT4_CLUSTER_SIZE(inode->i_sb) >> 9 : 0; in ext4_inode_is_fast_symlink() [all …]
|
D | namei.c | 61 if (unlikely(EXT4_SB(inode->i_sb)->s_max_dir_size_kb && in ext4_append() 63 EXT4_SB(inode->i_sb)->s_max_dir_size_kb))) in ext4_append() 66 *block = inode->i_size >> inode->i_sb->s_blocksize_bits; in ext4_append() 86 inode->i_size += inode->i_sb->s_blocksize; in ext4_append() 92 err = ext4_journal_get_write_access(handle, inode->i_sb, bh, in ext4_append() 100 ext4_std_error(inode->i_sb, err); in ext4_append() 141 if (ext4_simulate_fail(inode->i_sb, EXT4_SIM_DIRBLOCK_EIO)) in __ext4_read_dirblock() 146 __ext4_warning(inode->i_sb, func, line, in __ext4_read_dirblock() 168 inode->i_sb->s_blocksize) == in __ext4_read_dirblock() 169 inode->i_sb->s_blocksize) in __ext4_read_dirblock() [all …]
|
/Linux-v6.6/fs/ntfs/ |
D | inode.c | 229 vi = iget5_locked(base_vi->i_sb, na.mft_no, ntfs_test_inode, in ntfs_attr_iget() 284 vi = iget5_locked(base_vi->i_sb, na.mft_no, ntfs_test_inode, in ntfs_index_iget() 526 ntfs_volume *vol = NTFS_SB(vi->i_sb); in ntfs_read_locked_inode() 562 ntfs_error(vi->i_sb, "Inode is not in use!"); in ntfs_read_locked_inode() 566 ntfs_error(vi->i_sb, "Inode is an extent inode!"); in ntfs_read_locked_inode() 625 ntfs_error(vi->i_sb, "$STANDARD_INFORMATION attribute " in ntfs_read_locked_inode() 635 ntfs_error(vi->i_sb, "Corrupt standard information attribute in inode."); in ntfs_read_locked_inode() 669 ntfs_error(vi->i_sb, "Failed to lookup attribute list " in ntfs_read_locked_inode() 680 ntfs_error(vi->i_sb, "Attribute list attribute is " in ntfs_read_locked_inode() 687 ntfs_error(vi->i_sb, "Non-resident attribute " in ntfs_read_locked_inode() [all …]
|
D | logfile.c | 57 ntfs_error(vi->i_sb, "$LogFile uses unsupported page size."); in ntfs_check_restart_page_header() 65 ntfs_error(vi->i_sb, "Found restart area in incorrect " in ntfs_check_restart_page_header() 72 ntfs_error(vi->i_sb, "$LogFile version %i.%i is not " in ntfs_check_restart_page_header() 89 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header() 98 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header() 113 ntfs_error(vi->i_sb, "$LogFile restart page specifies " in ntfs_check_restart_page_header() 122 ntfs_error(vi->i_sb, "$LogFile restart page is not modified " in ntfs_check_restart_page_header() 161 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area() 175 ntfs_error(vi->i_sb, "$LogFile restart area specifies " in ntfs_check_restart_area() 190 ntfs_error(vi->i_sb, "$LogFile restart area is out of bounds " in ntfs_check_restart_area() [all …]
|
/Linux-v6.6/fs/udf/ |
D | ialloc.c | 27 udf_free_blocks(inode->i_sb, NULL, &UDF_I(inode)->i_location, 0, 1); in udf_free_inode() 32 struct super_block *sb = dir->i_sb; in udf_new_inode() 47 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_EXTENDED_FE)) { in udf_new_inode() 51 iinfo->i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode() 56 iinfo->i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode() 67 block = udf_new_block(dir->i_sb, NULL, in udf_new_inode() 97 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_AD_IN_ICB)) in udf_new_inode() 99 else if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_new_inode()
|
D | inode.c | 149 udf_warn(inode->i_sb, in udf_evict_inode() 351 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_file_adinicb() 370 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_file_adinicb() 426 map->pblk = udf_get_lb_pblock(inode->i_sb, &eloc, in udf_map_block() 462 map_bh(bh_result, inode->i_sb, map.pblk); in __udf_get_block() 507 struct super_block *sb = inode->i_sb; in udf_do_extend_file() 640 struct super_block *sb = inode->i_sb; in udf_extend_file() 727 b_off = (loff_t)map->lblk << inode->i_sb->s_blocksize_bits; in inode_getblk() 763 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk() 764 inode->i_sb->s_blocksize_bits); in inode_getblk() [all …]
|
D | truncate.c | 30 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() 31 inode->i_sb->s_blocksize_bits; in extent_trunc() 32 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> in extent_trunc() 33 inode->i_sb->s_blocksize_bits; in extent_trunc() 37 udf_free_blocks(inode->i_sb, inode, eloc, 0, in extent_trunc() 52 udf_free_blocks(inode->i_sb, inode, eloc, in extent_trunc() 92 if (lbcount - inode->i_size >= inode->i_sb->s_blocksize) in udf_truncate_tail_extent() 93 udf_warn(inode->i_sb, in udf_truncate_tail_extent() 105 udf_err(inode->i_sb, in udf_truncate_tail_extent() 147 udf_free_blocks(inode->i_sb, inode, &eloc, 0, in udf_discard_prealloc() [all …]
|
D | namei.c | 57 struct super_block *sb = dir->i_sb; in udf_fiiter_find_entry() 127 inode = udf_iget(dir->i_sb, &loc); in udf_lookup() 147 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_dir_adinicb() 159 *block = udf_new_block(inode->i_sb, inode, in udf_expand_dir_adinicb() 164 newblock = udf_get_pblock(inode->i_sb, *block, in udf_expand_dir_adinicb() 169 dbh = sb_getblk(inode->i_sb, newblock); in udf_expand_dir_adinicb() 175 inode->i_sb->s_blocksize - inode->i_size); in udf_expand_dir_adinicb() 194 udf_free_blocks(inode->i_sb, inode, &eloc, 0, 1); in udf_expand_dir_adinicb() 235 namelen = udf_put_filename(dir->i_sb, dentry->d_name.name, in udf_fiiter_add_entry() 300 if (UDF_SB(dir->i_sb)->s_udfrev >= 0x0200) in udf_fiiter_add_entry() [all …]
|
/Linux-v6.6/fs/omfs/ |
D | file.c | 33 struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); in omfs_shrink_inode() 52 bh = omfs_bread(inode->i_sb, next); in omfs_shrink_inode() 79 omfs_clear_range(inode->i_sb, start, (int) count); in omfs_shrink_inode() 87 omfs_clear_range(inode->i_sb, last, sbi->s_mirrors); in omfs_shrink_inode() 92 bh = omfs_bread(inode->i_sb, next); in omfs_shrink_inode() 121 struct omfs_sb_info *sbi = OMFS_SB(inode->i_sb); in omfs_grow_extent() 148 if (omfs_allocate_block(inode->i_sb, new_block)) { in omfs_grow_extent() 162 ret = omfs_allocate_range(inode->i_sb, 1, sbi->s_clustersize, in omfs_grow_extent() 197 int numblocks = clus_to_blk(OMFS_SB(inode->i_sb), in find_block() 207 return clus_to_blk(OMFS_SB(inode->i_sb), in find_block() [all …]
|
/Linux-v6.6/fs/jfs/ |
D | jfs_discard.c | 34 struct super_block *sb = ip->i_sb; in jfs_issue_discard() 67 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in jfs_ioc_trim() 68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() 69 struct super_block *sb = ipbmap->i_sb; in jfs_ioc_trim() 97 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim() 98 agno_end = BLKTOAG(end, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
|