Home
last modified time | relevance | path

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

12345

/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.c35 stat->blocks = inode->i_blocks; in generic_fillattr()
432 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
436 inode->i_blocks++; in __inode_add_bytes()
453 inode->i_blocks -= bytes >> 9; in inode_sub_bytes()
456 inode->i_blocks--; in inode_sub_bytes()
470 ret = (((loff_t)inode->i_blocks) << 9) + inode->i_bytes; in inode_get_bytes()
481 inode->i_blocks = bytes >> 9; in inode_set_bytes()
/fs/efs/
Dfile.c20 if (iblock >= inode->i_blocks) { in efs_get_block()
27 inode->i_blocks, in efs_get_block()
46 if (!(block < inode->i_blocks)) { in efs_bmap()
53 inode->i_blocks, 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.c43 while (block < inode->i_blocks) { in efs_readdir()
Dnamei.c28 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.c59 i->i_blocks = 1 + ((i->i_size + 511) >> 9); in hpfs_truncate()
82 if ((s = hpfs_add_sector_to_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1)) == -1) { in hpfs_get_block()
83 hpfs_truncate_btree(inode->i_sb, inode->i_ino, 1, inode->i_blocks - 1); in hpfs_get_block()
87 inode->i_blocks++; in hpfs_get_block()
Dinode.c22 i->i_blocks = -1; in hpfs_init_inode()
83 i->i_blocks = 1; in hpfs_read_inode()
107 i->i_blocks = 1; in hpfs_read_inode()
127 i->i_blocks = 4 * n_dnodes; in hpfs_read_inode()
137 i->i_blocks = ((i->i_size + 511) >> 9) + 1; in hpfs_read_inode()
Dnamei.c57 result->i_blocks = 4; in hpfs_mkdir()
162 result->i_blocks = 1; in hpfs_create()
247 result->i_blocks = 1; in hpfs_mknod()
320 result->i_blocks = 1; in hpfs_symlink()
/fs/ufs/
Dinode.c575 if (!inode->i_blocks) in ufs_set_inode_ops()
615 inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); in ufs1_read_inode()
622 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs1_read_inode()
663 inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks); in ufs2_read_inode()
671 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs2_read_inode()
763 ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks); in ufs1_update_inode()
775 } else if (inode->i_blocks) { in ufs1_update_inode()
808 ufs_inode->ui_blocks = cpu_to_fs64(sb, inode->i_blocks); in ufs2_update_inode()
815 } else if (inode->i_blocks) { in ufs2_update_inode()
897 if (inode->i_blocks && ufs_truncate(inode, old_i_size)) in ufs_evict_inode()
/fs/f2fs/
Dinode.c67 inode->i_blocks = le64_to_cpu(ri->i_blocks); in do_read_inode()
172 ri->i_blocks = cpu_to_le64(inode->i_blocks); in update_inode()
Df2fs.h551 return (inode->i_blocks > F2FS_DEFAULT_ALLOCATED_BLOCKS + 1); in F2FS_HAS_BLOCKS()
553 return (inode->i_blocks > F2FS_DEFAULT_ALLOCATED_BLOCKS); in F2FS_HAS_BLOCKS()
568 inode->i_blocks += count; in inc_valid_block_count()
581 BUG_ON(inode->i_blocks < count); in dec_valid_block_count()
582 inode->i_blocks -= count; in dec_valid_block_count()
699 inode->i_blocks += count; in inc_valid_node_count()
715 BUG_ON(inode->i_blocks < count); in dec_valid_node_count()
717 inode->i_blocks -= count; in dec_valid_node_count()
/fs/fat/
Dmisc.c157 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add()
160 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add()
163 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
/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()
601 tmp_inode->i_blocks = 0; in ext4_ext_migrate()
Dtruncate.h25 needed = inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9); in ext4_blocks_for_truncate()
Dinode.c152 return (S_ISLNK(inode->i_mode) && inode->i_blocks - ea_blocks == 0); in ext4_inode_is_fast_symlink()
263 if (inode->i_blocks) in ext4_evict_inode()
3985 blkcnt_t i_blocks ; in ext4_inode_blocks() local
3992 i_blocks = ((u64)le16_to_cpu(raw_inode->i_blocks_high)) << 32 | in ext4_inode_blocks()
3996 return i_blocks << (inode->i_blkbits - 9); in ext4_inode_blocks()
3998 return i_blocks; in ext4_inode_blocks()
4111 inode->i_blocks = ext4_inode_blocks(raw_inode, ei); in ext4_iget()
4261 u64 i_blocks = inode->i_blocks; in ext4_inode_blocks_set() local
4264 if (i_blocks <= ~0U) { in ext4_inode_blocks_set()
4269 raw_inode->i_blocks_lo = cpu_to_le32(i_blocks); in ext4_inode_blocks_set()
[all …]
/fs/squashfs/
Dinode.c170 inode->i_blocks = ((inode->i_size - 1) >> 9) + 1; in squashfs_read_inode()
215 inode->i_blocks = (inode->i_size - in squashfs_read_inode()
412 inode->i_blocks += ((squashfs_i(inode)->xattr_size - 1) >> 9) in squashfs_read_inode()
/fs/jffs2/
Dfs.c164 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
185 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
290 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_iget()
477 inode->i_blocks = 0; in jffs2_new_inode()
/fs/jfs/
Dresize.c481 ipbmap2->i_blocks = ipbmap->i_blocks; in jfs_extendfs()
/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.c51 inode->i_blocks - ea_blocks == 0); in ext2_inode_is_fast_symlink()
91 if (inode->i_blocks) in ext2_evict_inode()
1359 inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); in ext2_iget()
1481 raw_inode->i_blocks = cpu_to_le32(inode->i_blocks); in __ext2_write_inode()
/fs/reiserfs/
Dinode.c83 inode->i_blocks = 0; in reiserfs_evict_inode()
1169 inode->i_blocks = sd_v1_blocks(sd); in init_inode()
1173 if (inode->i_blocks > blocks) { in init_inode()
1179 inode->i_blocks = blocks; in init_inode()
1188 if (inode->i_blocks & 1) { in init_inode()
1189 inode->i_blocks++; in init_inode()
1192 to_real_used_space(inode, inode->i_blocks, in init_inode()
1213 inode->i_blocks = sd_v2_blocks(sd); in init_inode()
1228 to_real_used_space(inode, inode->i_blocks, in init_inode()
1248 inode->i_blocks = 0; in init_inode()
[all …]
/fs/sysv/
Dinode.c165 if (inode->i_blocks) { in sysv_set_inode()
216 inode->i_blocks = 0; in sysv_iget()

12345