Home
last modified time | relevance | path

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

1234

/fs/
Dstack.c13 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.c47 stat->blocks = inode->i_blocks; in generic_fillattr()
668 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
672 inode->i_blocks++; in __inode_add_bytes()
689 inode->i_blocks -= bytes >> 9; in __inode_sub_bytes()
692 inode->i_blocks--; in __inode_sub_bytes()
725 inode->i_blocks = bytes >> 9; in inode_set_bytes()
/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()
Dinode.c110 inode->i_blocks = 0; in efs_iget()
112 inode->i_blocks = ((inode->i_size - 1) >> EFS_BLOCKSIZE_BITS) + 1; in efs_iget()
Ddir.c40 while (block < inode->i_blocks) { in efs_readdir()
Dnamei.c31 for(block = 0; block < inode->i_blocks; block++) { in efs_find_entry()
/fs/gfs2/
Dinode.h52 inode->i_blocks = blocks << in gfs2_set_inode_blocks()
58 return inode->i_blocks >> in gfs2_get_inode_blocks()
64 gfs2_assert(GFS2_SB(inode), (change >= 0 || inode->i_blocks > -change)); in gfs2_add_inode_blocks()
66 inode->i_blocks += change; in gfs2_add_inode_blocks()
/fs/hpfs/
Dfile.c70 i->i_blocks = 1 + ((i->i_size + 511) >> 9); in hpfs_truncate()
102 if ((s = hpfs_add_sector_to_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1)) == -1) { in hpfs_get_block()
103 hpfs_truncate_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1); in hpfs_get_block()
107 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.c69 result->i_blocks = 4; in hpfs_mkdir()
175 result->i_blocks = 1; in hpfs_create()
259 result->i_blocks = 1; in hpfs_mknod()
333 result->i_blocks = 1; in hpfs_symlink()
/fs/fat/
Dmisc.c152 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add()
155 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add()
158 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
/fs/ufs/
Dinode.c546 if (!inode->i_blocks) { in ufs_set_inode_ops()
586 inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); in ufs1_read_inode()
593 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs1_read_inode()
632 inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks); in ufs2_read_inode()
640 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs2_read_inode()
731 ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks); in ufs1_update_inode()
743 } else if (inode->i_blocks) { in ufs1_update_inode()
776 ufs_inode->ui_blocks = cpu_to_fs64(sb, inode->i_blocks); in ufs2_update_inode()
783 } else if (inode->i_blocks) { in ufs2_update_inode()
855 if (inode->i_blocks && in ufs_evict_inode()
/fs/cachefiles/
Dinterface.c257 blkcnt_t i_blocks = 0; in cachefiles_drop_object() local
286 i_blocks = inode->i_blocks; in cachefiles_drop_object()
301 cachefiles_mark_object_inactive(cache, object, i_blocks); in cachefiles_drop_object()
/fs/ocfs2/
Dsymlink.h38 inode->i_blocks == 0); in ocfs2_inode_is_fast_symlink()
/fs/ext4/
Dmigrate.c368 inode->i_blocks += tmp_inode->i_blocks; in ext4_ext_swap_inode_data()
456 if (S_ISLNK(inode->i_mode) && inode->i_blocks == 0) in ext4_ext_migrate()
603 tmp_inode->i_blocks = 0; in ext4_ext_migrate()
Dtruncate.h28 needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); in ext4_blocks_for_truncate()
Dinode.c160 return (S_ISLNK(inode->i_mode) && inode->i_blocks - ea_blocks == 0); in ext4_inode_is_fast_symlink()
297 if (inode->i_blocks) { in ext4_evict_inode()
4702 blkcnt_t i_blocks ; in ext4_inode_blocks() local
4708 i_blocks = ((u64)le16_to_cpu(raw_inode->i_blocks_high)) << 32 | in ext4_inode_blocks()
4712 return i_blocks << (inode->i_blkbits - 9); in ext4_inode_blocks()
4714 return i_blocks; in ext4_inode_blocks()
4857 inode->i_blocks = ext4_inode_blocks(raw_inode, ei); in ext4_iget()
5032 u64 i_blocks = inode->i_blocks; in ext4_inode_blocks_set() local
5035 if (i_blocks <= ~0U) { in ext4_inode_blocks_set()
5040 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set()
[all …]
/fs/squashfs/
Dinode.c171 inode->i_blocks = ((inode->i_size - 1) >> 9) + 1; in squashfs_read_inode()
216 inode->i_blocks = (inode->i_size - in squashfs_read_inode()
414 inode->i_blocks += ((squashfs_i(inode)->xattr_size - 1) >> 9) in squashfs_read_inode()
/fs/f2fs/
Dinode.c202 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks); in sanity_check_inode()
329 inode->i_blocks = SECTOR_FROM_BLOCK(le64_to_cpu(ri->i_blocks) - 1); in do_read_inode()
529 ri->i_blocks = cpu_to_le64(SECTOR_TO_BLOCK(inode->i_blocks) + 1); in f2fs_update_inode()
/fs/jffs2/
Dfs.c165 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
186 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
289 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_iget()
478 inode->i_blocks = 0; in jffs2_new_inode()
/fs/jfs/
Dresize.c487 ipbmap2->i_blocks = ipbmap->i_blocks; in jfs_extendfs()
Djfs_inode.c115 inode->i_blocks = 0; in ialloc()
/fs/adfs/
Dinode.c23 if (block >= inode->i_blocks) in adfs_get_block()
256 inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> in adfs_iget()
/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()
1437 inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); in ext2_iget()
1571 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()
/fs/reiserfs/
Dinode.c103 inode->i_blocks = 0; in reiserfs_evict_inode()
1276 inode->i_blocks = sd_v1_blocks(sd); in init_inode()
1289 if (inode->i_blocks > blocks) { in init_inode()
1290 inode->i_blocks = blocks; in init_inode()
1301 if (inode->i_blocks & 1) { in init_inode()
1302 inode->i_blocks++; in init_inode()
1305 to_real_used_space(inode, inode->i_blocks, in init_inode()
1330 inode->i_blocks = sd_v2_blocks(sd); in init_inode()
1345 to_real_used_space(inode, inode->i_blocks, in init_inode()
1368 inode->i_blocks = 0; in init_inode()
[all …]

1234