Home
last modified time | relevance | path

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

12345

/openbmc/linux/fs/
H A 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()
H A 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()
/openbmc/linux/fs/efs/
H A 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()
H A Ddir.c40 while (block < inode->i_blocks) { in efs_readdir()
H A Dinode.c113 inode->i_blocks = 0; in efs_iget()
115 inode->i_blocks = ((inode->i_size - 1) >> EFS_BLOCKSIZE_BITS) + 1; in efs_iget()
H A Dnamei.c31 for(block = 0; block < inode->i_blocks; block++) { in efs_find_entry()
/openbmc/linux/fs/gfs2/
H A 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()
/openbmc/linux/fs/hpfs/
H A 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()
H A 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()
H A 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()
/openbmc/linux/fs/ocfs2/
H A Dsymlink.h22 inode->i_blocks == 0); in ocfs2_inode_is_fast_symlink()
/openbmc/linux/fs/ext4/
H A Dtruncate.h34 needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); in ext4_blocks_for_truncate()
H A 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()
/openbmc/linux/fs/fat/
H A 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()
/openbmc/linux/fs/ufs/
H A 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()
/openbmc/linux/fs/f2fs/
H A Dinode.c210 SECTOR_TO_BLOCK(inode->i_blocks)) { in sanity_check_compress_inode()
214 SECTOR_TO_BLOCK(inode->i_blocks)); in sanity_check_compress_inode()
276 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks); in sanity_check_inode()
413 inode->i_blocks = SECTOR_FROM_BLOCK(le64_to_cpu(ri->i_blocks) - 1); in do_read_inode()
663 ri->i_blocks = cpu_to_le64(SECTOR_TO_BLOCK(inode->i_blocks) + 1); in f2fs_update_inode()
/openbmc/linux/fs/squashfs/
H A Dinode.c161 inode->i_blocks = ((inode->i_size - 1) >> 9) + 1; in squashfs_read_inode()
206 inode->i_blocks = (inode->i_size - in squashfs_read_inode()
409 inode->i_blocks += ((squashfs_i(inode)->xattr_size - 1) >> 9) in squashfs_read_inode()
/openbmc/linux/fs/jfs/
H A Dresize.c474 ipbmap2->i_blocks = ipbmap->i_blocks; in jfs_extendfs()
H A Djfs_inode.c99 inode->i_blocks = 0; in ialloc()
/openbmc/linux/fs/adfs/
H A 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()
/openbmc/linux/fs/jffs2/
H A 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()
/openbmc/linux/fs/udf/
H A Dialloc.c89 inode->i_blocks = 0; in udf_new_inode()
/openbmc/linux/fs/ext2/
H A 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()
/openbmc/linux/fs/erofs/
H A Dinode.c188 inode->i_blocks = round_up(inode->i_size, sb->s_blocksize) >> 9; in erofs_read_inode()
190 inode->i_blocks = nblks << (sb->s_blocksize_bits - 9); in erofs_read_inode()
/openbmc/linux/fs/reiserfs/
H A 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 …]

12345