Home
last modified time | relevance | path

Searched refs:i_blocks (Results 1 – 25 of 122) sorted by relevance

12345

/linux-6.6.21/fs/
Dstack.c14 blkcnt_t i_blocks; in fsstack_copy_inode_size() local
34 if (sizeof(i_blocks) > sizeof(long)) in fsstack_copy_inode_size()
36 i_blocks = src->i_blocks; in fsstack_copy_inode_size()
37 if (sizeof(i_blocks) > sizeof(long)) in fsstack_copy_inode_size()
53 if (sizeof(i_size) > sizeof(long) || sizeof(i_blocks) > sizeof(long)) in fsstack_copy_inode_size()
56 dst->i_blocks = i_blocks; in fsstack_copy_inode_size()
57 if (sizeof(i_size) > sizeof(long) || sizeof(i_blocks) > sizeof(long)) in fsstack_copy_inode_size()
Dstat.c64 stat->blocks = inode->i_blocks; in generic_fillattr()
799 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
803 inode->i_blocks++; in __inode_add_bytes()
820 inode->i_blocks -= bytes >> 9; in __inode_sub_bytes()
823 inode->i_blocks--; in __inode_sub_bytes()
856 inode->i_blocks = bytes >> 9; in inode_set_bytes()
/linux-6.6.21/fs/efs/
Dfile.c21 if (iblock >= inode->i_blocks) { in efs_get_block()
27 __func__, block, inode->i_blocks, inode->i_size); in efs_get_block()
45 if (!(block < inode->i_blocks)) { in efs_bmap()
51 __func__, block, inode->i_blocks, inode->i_size); in efs_bmap()
Ddir.c40 while (block < inode->i_blocks) { in efs_readdir()
Dinode.c113 inode->i_blocks = 0; in efs_iget()
115 inode->i_blocks = ((inode->i_size - 1) >> EFS_BLOCKSIZE_BITS) + 1; in efs_iget()
Dnamei.c31 for(block = 0; block < inode->i_blocks; block++) { in efs_find_entry()
/linux-6.6.21/fs/gfs2/
Dinode.h47 inode->i_blocks = blocks << in gfs2_set_inode_blocks()
53 return inode->i_blocks >> in gfs2_get_inode_blocks()
60 gfs2_assert(GFS2_SB(inode), (change >= 0 || inode->i_blocks >= -change)); in gfs2_add_inode_blocks()
61 inode->i_blocks += change; in gfs2_add_inode_blocks()
/linux-6.6.21/fs/hpfs/
Dfile.c72 i->i_blocks = 1 + ((i->i_size + 511) >> 9); in hpfs_truncate()
104 if ((s = hpfs_add_sector_to_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1)) == -1) { in hpfs_get_block()
105 hpfs_truncate_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1); in hpfs_get_block()
109 inode->i_blocks++; in hpfs_get_block()
Dinode.c23 i->i_blocks = -1; in hpfs_init_inode()
85 i->i_blocks = 1; in hpfs_read_inode()
109 i->i_blocks = 1; in hpfs_read_inode()
129 i->i_blocks = 4 * n_dnodes; in hpfs_read_inode()
139 i->i_blocks = ((i->i_size + 511) >> 9) + 1; in hpfs_read_inode()
Dnamei.c67 result->i_blocks = 4; in hpfs_mkdir()
172 result->i_blocks = 1; in hpfs_create()
255 result->i_blocks = 1; in hpfs_mknod()
328 result->i_blocks = 1; in hpfs_symlink()
/linux-6.6.21/fs/ocfs2/
Dsymlink.h22 inode->i_blocks == 0); in ocfs2_inode_is_fast_symlink()
/linux-6.6.21/fs/fat/
Dmisc.c160 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add()
163 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add()
166 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
/linux-6.6.21/fs/ext4/
Dtruncate.h34 needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); in ext4_blocks_for_truncate()
Dmigrate.c335 inode->i_blocks += tmp_inode->i_blocks; in ext4_ext_swap_inode_data()
431 if (S_ISLNK(inode->i_mode) && inode->i_blocks == 0) in ext4_ext_migrate()
578 tmp_inode->i_blocks = 0; in ext4_ext_migrate()
/linux-6.6.21/fs/ufs/
Dinode.c548 if (!inode->i_blocks) { in ufs_set_inode_ops()
589 inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); in ufs1_read_inode()
596 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs1_read_inode()
635 inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks); in ufs2_read_inode()
643 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs2_read_inode()
735 ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks); in ufs1_update_inode()
747 } else if (inode->i_blocks) { in ufs1_update_inode()
781 ufs_inode->ui_blocks = cpu_to_fs64(sb, inode->i_blocks); in ufs2_update_inode()
788 } else if (inode->i_blocks) { in ufs2_update_inode()
860 if (inode->i_blocks && in ufs_evict_inode()
/linux-6.6.21/fs/f2fs/
Dinode.c220 SECTOR_TO_BLOCK(inode->i_blocks)) { in sanity_check_compress_inode()
224 SECTOR_TO_BLOCK(inode->i_blocks)); in sanity_check_compress_inode()
286 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks); in sanity_check_inode()
418 inode->i_blocks = SECTOR_FROM_BLOCK(le64_to_cpu(ri->i_blocks) - 1); in do_read_inode()
686 ri->i_blocks = cpu_to_le64(SECTOR_TO_BLOCK(inode->i_blocks) + 1); in f2fs_update_inode()
/linux-6.6.21/fs/squashfs/
Dinode.c158 inode->i_blocks = ((inode->i_size - 1) >> 9) + 1; in squashfs_read_inode()
203 inode->i_blocks = (inode->i_size - in squashfs_read_inode()
401 inode->i_blocks += ((squashfs_i(inode)->xattr_size - 1) >> 9) in squashfs_read_inode()
/linux-6.6.21/fs/jfs/
Dresize.c474 ipbmap2->i_blocks = ipbmap->i_blocks; in jfs_extendfs()
Djfs_inode.c99 inode->i_blocks = 0; in ialloc()
/linux-6.6.21/fs/adfs/
Dinode.c20 if (block >= inode->i_blocks) in adfs_get_block()
255 inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> in adfs_iget()
/linux-6.6.21/fs/jffs2/
Dfs.c166 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
187 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
291 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_iget()
481 inode->i_blocks = 0; in jffs2_new_inode()
/linux-6.6.21/fs/udf/
Dialloc.c89 inode->i_blocks = 0; in udf_new_inode()
/linux-6.6.21/fs/ext2/
Dinode.c54 inode->i_blocks - ea_blocks == 0); in ext2_inode_is_fast_symlink()
94 if (inode->i_blocks) in ext2_evict_inode()
1430 inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); in ext2_iget()
1551 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()
/linux-6.6.21/fs/reiserfs/
Dinode.c103 inode->i_blocks = 0; in reiserfs_evict_inode()
1266 inode->i_blocks = sd_v1_blocks(sd); in init_inode()
1279 if (inode->i_blocks > blocks) { in init_inode()
1280 inode->i_blocks = blocks; in init_inode()
1291 if (inode->i_blocks & 1) { in init_inode()
1292 inode->i_blocks++; in init_inode()
1295 to_real_used_space(inode, inode->i_blocks, in init_inode()
1319 inode->i_blocks = sd_v2_blocks(sd); in init_inode()
1334 to_real_used_space(inode, inode->i_blocks, in init_inode()
1357 inode->i_blocks = 0; in init_inode()
[all …]
/linux-6.6.21/include/trace/events/
Dext4.h186 __entry->blocks = inode->i_blocks;
1224 __field( __u64, i_blocks )
1234 __entry->i_blocks = inode->i_blocks;
1246 __entry->mode, __entry->i_blocks,
1259 __field( __u64, i_blocks )
1267 __entry->i_blocks = inode->i_blocks;
1276 __entry->mode, __entry->i_blocks,
1288 __field( __u64, i_blocks )
1297 __entry->i_blocks = inode->i_blocks;
1307 __entry->mode, __entry->i_blocks,
[all …]

12345