Home
last modified time | relevance | path

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

1234

/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.c47 stat->blocks = inode->i_blocks; in generic_fillattr()
679 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
683 inode->i_blocks++; in __inode_add_bytes()
700 inode->i_blocks -= bytes >> 9; in __inode_sub_bytes()
703 inode->i_blocks--; in __inode_sub_bytes()
736 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.c111 inode->i_blocks = 0; in efs_iget()
113 inode->i_blocks = ((inode->i_size - 1) >> EFS_BLOCKSIZE_BITS) + 1; in efs_iget()
Ddir.c40 while (block < inode->i_blocks) { in efs_readdir()
/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()
/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.c154 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add()
157 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add()
160 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
/fs/ufs/
Dinode.c547 if (!inode->i_blocks) { in ufs_set_inode_ops()
587 inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); in ufs1_read_inode()
594 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs1_read_inode()
633 inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks); in ufs2_read_inode()
641 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs2_read_inode()
732 ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks); in ufs1_update_inode()
744 } else if (inode->i_blocks) { in ufs1_update_inode()
777 ufs_inode->ui_blocks = cpu_to_fs64(sb, inode->i_blocks); in ufs2_update_inode()
784 } else if (inode->i_blocks) { in ufs2_update_inode()
856 if (inode->i_blocks && in ufs_evict_inode()
/fs/cachefiles/
Dinterface.c267 blkcnt_t i_blocks = 0; in cachefiles_drop_object() local
296 i_blocks = inode->i_blocks; in cachefiles_drop_object()
311 cachefiles_mark_object_inactive(cache, object, i_blocks); in cachefiles_drop_object()
/fs/ext4/
Dmigrate.c361 inode->i_blocks += tmp_inode->i_blocks; in ext4_ext_swap_inode_data()
448 if (S_ISLNK(inode->i_mode) && inode->i_blocks == 0) in ext4_ext_migrate()
593 tmp_inode->i_blocks = 0; in ext4_ext_migrate()
Dtruncate.h32 needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); in ext4_blocks_for_truncate()
Dioctl.c193 size = (qsize_t)(inode->i_blocks) * (1 << 9) + inode->i_bytes; in swap_inode_boot_loader()
194 size_bl = (qsize_t)(inode_bl->i_blocks) * (1 << 9) + inode_bl->i_bytes; in swap_inode_boot_loader()
219 blocks = inode_bl->i_blocks; in swap_inode_boot_loader()
221 inode_bl->i_blocks = inode->i_blocks; in swap_inode_boot_loader()
241 inode_bl->i_blocks = blocks; in swap_inode_boot_loader()
/fs/ocfs2/
Dsymlink.h24 inode->i_blocks == 0); in ocfs2_inode_is_fast_symlink()
/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()
/fs/f2fs/
Dinode.c205 iblocks = le64_to_cpu(F2FS_INODE(node_page)->i_blocks); in sanity_check_inode()
316 inode->i_blocks = SECTOR_FROM_BLOCK(le64_to_cpu(ri->i_blocks) - 1); in do_read_inode()
518 ri->i_blocks = cpu_to_le64(SECTOR_TO_BLOCK(inode->i_blocks) + 1); in f2fs_update_inode()
/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()
290 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_iget()
480 inode->i_blocks = 0; in jffs2_new_inode()
/fs/jfs/
Dresize.c474 ipbmap2->i_blocks = ipbmap->i_blocks; in jfs_extendfs()
Djfs_inode.c99 inode->i_blocks = 0; in ialloc()
/fs/adfs/
Dinode.c20 if (block >= inode->i_blocks) in adfs_get_block()
253 inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> in adfs_iget()
/fs/erofs/
Dinode.c120 inode->i_blocks = roundup(inode->i_size, EROFS_BLKSIZ) >> 9; in erofs_read_inode()
122 inode->i_blocks = nblks << LOG_SECTORS_PER_BLOCK; in erofs_read_inode()
/fs/reiserfs/
Dinode.c103 inode->i_blocks = 0; in reiserfs_evict_inode()
1277 inode->i_blocks = sd_v1_blocks(sd); in init_inode()
1290 if (inode->i_blocks > blocks) { in init_inode()
1291 inode->i_blocks = blocks; in init_inode()
1302 if (inode->i_blocks & 1) { in init_inode()
1303 inode->i_blocks++; in init_inode()
1306 to_real_used_space(inode, inode->i_blocks, in init_inode()
1331 inode->i_blocks = sd_v2_blocks(sd); in init_inode()
1346 to_real_used_space(inode, inode->i_blocks, in init_inode()
1369 inode->i_blocks = 0; in init_inode()
[all …]
/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()
1455 inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); in ext2_iget()
1582 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()

1234