/linux/fs/hpfs/ |
H A 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 …]
|
H A 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_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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/fs/nilfs2/ |
H A D | namei.c | 69 inode = nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino); in nilfs_lookup() 71 nilfs_error(dir->i_sb, in nilfs_lookup() 95 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_create() 108 err = nilfs_transaction_commit(dir->i_sb); in nilfs_create() 110 nilfs_transaction_abort(dir->i_sb); in nilfs_create() 123 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_mknod() 134 err = nilfs_transaction_commit(dir->i_sb); in nilfs_mknod() 136 nilfs_transaction_abort(dir->i_sb); in nilfs_mknod() 145 struct super_block *sb = dir->i_sb; in nilfs_symlink() 153 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_symlink() [all …]
|
H A 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() 54 if (unlikely(nilfs_near_disk_full(inode->i_sb->s_fs_info))) in nilfs_page_mkwrite() 57 sb_start_pagefault(inode->i_sb); in nilfs_page_mkwrite() 95 ret = nilfs_transaction_begin(inode->i_sb, &ti, 1); in nilfs_page_mkwrite() 103 nilfs_transaction_abort(inode->i_sb); in nilfs_page_mkwrite() 107 nilfs_transaction_commit(inode->i_sb); in nilfs_page_mkwrite() 118 sb_end_pagefault(inode->i_sb); in nilfs_page_mkwrite()
|
H A D | ioctl.c | 154 ret = nilfs_transaction_begin(inode->i_sb, &ti, 0); in nilfs_fileattr_set() 167 return nilfs_transaction_commit(inode->i_sb); in nilfs_fileattr_set() 204 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_change_cpmode() 222 nilfs_transaction_begin(inode->i_sb, &ti, 0); in nilfs_ioctl_change_cpmode() 226 nilfs_transaction_abort(inode->i_sb); in nilfs_ioctl_change_cpmode() 228 nilfs_transaction_commit(inode->i_sb); /* never fails */ in nilfs_ioctl_change_cpmode() 259 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_ioctl_delete_checkpoint() 275 nilfs_transaction_begin(inode->i_sb, &ti, 0); in nilfs_ioctl_delete_checkpoint() 278 nilfs_transaction_abort(inode->i_sb); in nilfs_ioctl_delete_checkpoint() 280 nilfs_transaction_commit(inode->i_sb); /* never fails */ in nilfs_ioctl_delete_checkpoint() [all …]
|
H A D | inode.c | 76 struct the_nilfs *nilfs = inode->i_sb->s_fs_info; in nilfs_get_block() 85 map_bh(bh_result, inode->i_sb, blknum); in nilfs_get_block() 95 err = nilfs_transaction_begin(inode->i_sb, &ti, 1); in nilfs_get_block() 108 nilfs_warn(inode->i_sb, in nilfs_get_block() 114 nilfs_transaction_abort(inode->i_sb); in nilfs_get_block() 118 nilfs_transaction_commit(inode->i_sb); /* never fails */ in nilfs_get_block() 122 map_bh(bh_result, inode->i_sb, 0); in nilfs_get_block() 161 if (sb_rdonly(inode->i_sb)) { in nilfs_writepages() 167 err = nilfs_construct_dsync_segment(inode->i_sb, inode, in nilfs_writepages() 223 int err = nilfs_transaction_begin(inode->i_sb, NULL, 1); in nilfs_write_begin() [all …]
|
/linux/fs/ext4/ |
H A D | migrate.c | 97 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_ind_extent_range() 99 bh = ext4_sb_bread(inode->i_sb, pblock, 0); in update_ind_extent_range() 126 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_dind_extent_range() 128 bh = ext4_sb_bread(inode->i_sb, pblock, 0); in update_dind_extent_range() 156 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in update_tind_extent_range() 158 bh = ext4_sb_bread(inode->i_sb, pblock, 0); in update_tind_extent_range() 185 struct super_block *sb = inode->i_sb; in free_dind_blocks() 186 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_dind_blocks() 226 unsigned long max_entries = inode->i_sb->s_blocksize >> 2; in free_tind_blocks() 228 bh = ext4_sb_bread(inode->i_sb, le32_to_cpu(i_data), 0); in free_tind_blocks() [all …]
|
H A 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()
|
H A D | inode.c | 60 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_inode_csum() 72 if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) { in ext4_inode_csum() 83 EXT4_INODE_SIZE(inode->i_sb) - offset); in ext4_inode_csum() 94 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_verify() 96 !ext4_has_metadata_csum(inode->i_sb)) in ext4_inode_csum_verify() 101 if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE && in ext4_inode_csum_verify() 115 if (EXT4_SB(inode->i_sb)->s_es->s_creator_os != in ext4_inode_csum_set() 117 !ext4_has_metadata_csum(inode->i_sb)) in ext4_inode_csum_set() 122 if (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE && in ext4_inode_csum_set() 155 EXT4_CLUSTER_SIZE(inode->i_sb) >> 9 : 0; in ext4_inode_is_fast_symlink() [all …]
|
H A 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() 169 inode->i_sb->s_blocksize) == in __ext4_read_dirblock() 170 inode->i_sb->s_blocksize) in __ext4_read_dirblock() [all …]
|
H A D | indirect.c | 78 int ptrs = EXT4_ADDR_PER_BLOCK(inode->i_sb); in ext4_block_to_path() 79 int ptrs_bits = EXT4_ADDR_PER_BLOCK_BITS(inode->i_sb); in ext4_block_to_path() 105 ext4_warning(inode->i_sb, "block %lu > max in inode %lu", in ext4_block_to_path() 148 struct super_block *sb = inode->i_sb; in ext4_get_branch() 357 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch() 364 err = ext4_journal_get_create_access(handle, ar->inode->i_sb, in ext4_alloc_branch() 440 err = ext4_journal_get_write_access(handle, ar->inode->i_sb, in ext4_splice_branch() 576 unsigned epb = inode->i_sb->s_blocksize / sizeof(u32); in ext4_ind_map_blocks() 602 if (ext4_has_feature_bigalloc(inode->i_sb)) { in ext4_ind_map_blocks() 686 return DIV_ROUND_UP(nrblocks, EXT4_ADDR_PER_BLOCK(inode->i_sb)) + 4; in ext4_ind_trans_blocks() [all …]
|
H A D | xattr.c | 68 inode->i_sb->s_id, inode->i_ino, ##__VA_ARGS__) 112 inode->i_sb->s_fs_info)->s_ea_block_cache) 115 inode->i_sb->s_fs_info)->s_ea_inode_cache) 136 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_xattr_block_csum() 148 EXT4_BLOCK_SIZE(inode->i_sb) - offset); in ext4_xattr_block_csum() 159 if (ext4_has_metadata_csum(inode->i_sb)) { in ext4_xattr_block_csum_verify() 171 if (ext4_has_metadata_csum(inode->i_sb)) in ext4_xattr_block_csum_set() 245 if (!ext4_has_feature_ea_inode(inode->i_sb) && ea_ino) { in check_xattrs() 250 !ext4_valid_inum(inode->i_sb, ea_ino))) { in check_xattrs() 435 ext4_error(parent->i_sb, in ext4_xattr_inode_iget() [all …]
|
/linux/fs/omfs/ |
H A 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/fs/udf/ |
H A 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()
|
H A D | inode.c | 149 udf_warn(inode->i_sb, in udf_evict_inode() 347 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_file_adinicb() 367 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_file_adinicb() 427 map->pblk = udf_get_lb_pblock(inode->i_sb, &eloc, in udf_map_block() 465 map_bh(bh_result, inode->i_sb, map.pblk); in __udf_get_block() 510 struct super_block *sb = inode->i_sb; in udf_do_extend_file() 648 struct super_block *sb = inode->i_sb; in udf_extend_file() 739 b_off = (loff_t)map->lblk << inode->i_sb->s_blocksize_bits; in inode_getblk() 779 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk() 780 inode->i_sb->s_blocksize_bits); in inode_getblk() [all …]
|
H A 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() 145 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_dir_adinicb() 157 *block = udf_new_block(inode->i_sb, inode, in udf_expand_dir_adinicb() 162 newblock = udf_get_pblock(inode->i_sb, *block, in udf_expand_dir_adinicb() 167 dbh = sb_getblk(inode->i_sb, newblock); in udf_expand_dir_adinicb() 173 inode->i_sb->s_blocksize - inode->i_size); in udf_expand_dir_adinicb() 192 udf_free_blocks(inode->i_sb, inode, &eloc, 0, 1); in udf_expand_dir_adinicb() 231 namelen = udf_put_filename(dir->i_sb, dentry->d_name.name, in udf_fiiter_add_entry() 296 if (UDF_SB(dir->i_sb)->s_udfrev >= 0x0200) in udf_fiiter_add_entry() [all …]
|
/linux/include/trace/events/ |
H A D | filemap.h | 34 if (folio->mapping->host->i_sb) 35 __entry->s_dev = folio->mapping->host->i_sb->s_dev; 78 if (mapping->host->i_sb) 80 mapping->host->i_sb->s_dev; 127 if (mapping->host->i_sb) 129 mapping->host->i_sb->s_dev; 157 if (mapping->host->i_sb) 158 __entry->s_dev = mapping->host->i_sb->s_dev; 184 if (file->f_mapping->host->i_sb) 186 file->f_mapping->host->i_sb->s_dev;
|
H A D | erofs.h | 48 __entry->dev = dir->i_sb->s_dev; 72 __entry->dev = inode->i_sb->s_dev; 74 __entry->blkaddr = erofs_blknr(inode->i_sb, erofs_iloc(inode)); 75 __entry->ofs = erofs_blkoff(inode->i_sb, erofs_iloc(inode)); 99 __entry->dev = folio->mapping->host->i_sb->s_dev; 132 __entry->dev = inode->i_sb->s_dev; 162 __entry->dev = inode->i_sb->s_dev; 195 __entry->dev = inode->i_sb->s_dev; 225 __entry->dev = inode->i_sb->s_dev;
|
/linux/fs/jfs/ |
H A 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() 69 struct super_block *sb = ipbmap->i_sb; in jfs_ioc_trim() 87 bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() 102 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim() 103 agno_end = BLKTOAG(end, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
|
/linux/fs/ocfs2/ |
H A D | xattr.c | 81 #define OCFS2_XATTR_FREE_IN_BLOCK(ptr) ((ptr)->i_sb->s_blocksize \ 319 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_xattr_bucket_new() 363 bucket->bu_bhs[i] = sb_getblk(bucket->bu_inode->i_sb, in ocfs2_init_xattr_bucket() 399 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 400 rc = ocfs2_validate_meta_ecc_bhs(bucket->bu_inode->i_sb, in ocfs2_read_xattr_bucket() 404 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_read_xattr_bucket() 438 spin_lock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 439 ocfs2_compute_meta_ecc_bhs(bucket->bu_inode->i_sb, in ocfs2_xattr_bucket_journal_dirty() 442 spin_unlock(&OCFS2_SB(bucket->bu_inode->i_sb)->osb_xattr_lock); in ocfs2_xattr_bucket_journal_dirty() 452 int blocksize = src->bu_inode->i_sb->s_blocksize; in ocfs2_xattr_bucket_copy_data() [all …]
|
H A D | extent_map.c | 222 ins.ei_phys = ocfs2_blocks_to_clusters(inode->i_sb, in ocfs2_extent_map_insert_rec() 293 ocfs2_error(inode->i_sb, in ocfs2_last_eb_is_empty() 429 ocfs2_error(inode->i_sb, in ocfs2_get_clusters_nocache() 464 ocfs2_error(inode->i_sb, in ocfs2_get_clusters_nocache() 553 ocfs2_error(inode->i_sb, in ocfs2_xattr_get_clusters() 572 ocfs2_error(inode->i_sb, in ocfs2_xattr_get_clusters() 581 *p_cluster = ocfs2_blocks_to_clusters(inode->i_sb, in ocfs2_xattr_get_clusters() 639 ocfs2_relative_extent_offsets(inode->i_sb, v_cluster, &rec, in ocfs2_get_clusters() 662 int bpc = ocfs2_clusters_to_blocks(inode->i_sb, 1); in ocfs2_extent_map_get_blocks() 666 cpos = ocfs2_blocks_to_clusters(inode->i_sb, v_blkno); in ocfs2_extent_map_get_blocks() [all …]
|
/linux/fs/sysv/ |
H A D | itree.c | 26 struct super_block *sb = inode->i_sb; in block_to_path() 92 struct super_block *sb = inode->i_sb; in get_branch() 131 int blocksize = inode->i_sb->s_blocksize; in alloc_branch() 135 branch[0].key = sysv_new_block(inode->i_sb); in alloc_branch() 140 branch[n].key = sysv_new_block(inode->i_sb); in alloc_branch() 147 parent = block_to_cpu(SYSV_SB(inode->i_sb), branch[n-1].key); in alloc_branch() 148 bh = sb_getblk(inode->i_sb, parent); in alloc_branch() 150 sysv_free_block(inode->i_sb, branch[n].key); in alloc_branch() 169 sysv_free_block(inode->i_sb, branch[i].key); in alloc_branch() 204 sysv_free_block(inode->i_sb, where[i].key); in splice_branch() [all …]
|