/fs/ubifs/ |
D | dir.c | 130 inode->i_size = ui->ui_size = UBIFS_INO_NODE_SZ; in ubifs_new_inode() 290 dir->i_size += sz_change; in ubifs_create() 291 dir_ui->ui_size = dir->i_size; in ubifs_create() 304 dir->i_size -= sz_change; in ubifs_create() 305 dir_ui->ui_size = dir->i_size; in ubifs_create() 543 dir->i_size += sz_change; in ubifs_link() 544 dir_ui->ui_size = dir->i_size; in ubifs_link() 556 dir->i_size -= sz_change; in ubifs_link() 557 dir_ui->ui_size = dir->i_size; in ubifs_link() 600 dir->i_size -= sz_change; in ubifs_unlink() [all …]
|
D | file.c | 112 loff_t i_size = i_size_read(inode); in do_readpage() local 115 inode->i_ino, page->index, i_size, page->flags); in do_readpage() 122 beyond = (i_size + UBIFS_BLOCK_SIZE - 1) >> UBIFS_BLOCK_SHIFT; in do_readpage() 152 int ilen = i_size & (UBIFS_BLOCK_SIZE - 1); in do_readpage() 229 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in write_begin_slow() 233 inode->i_ino, pos, len, inode->i_size); in write_begin_slow() 432 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in ubifs_write_begin() 435 ubifs_assert(ubifs_inode(inode)->ui_size == inode->i_size); in ubifs_write_begin() 534 int appending = !!(end_pos > inode->i_size); in ubifs_write_end() 537 inode->i_ino, pos, page->index, len, copied, inode->i_size); in ubifs_write_end() [all …]
|
D | recovery.c | 1211 loff_t i_size; member 1225 static int add_ino(struct ubifs_info *c, ino_t inum, loff_t i_size, in add_ino() argument 1245 e->i_size = i_size; in add_ino() 1363 e->i_size = new_size; in ubifs_recover_size_accum() 1403 loff_t i_size; in fix_size_in_place() local 1415 i_size = le64_to_cpu(ino->size); in fix_size_in_place() 1416 if (i_size >= e->d_size) in fix_size_in_place() 1439 (unsigned long)e->inum, lnum, offs, i_size, e->d_size); in fix_size_in_place() 1444 (unsigned long)e->inum, e->i_size, e->d_size, err); in fix_size_in_place() 1484 e->i_size = le64_to_cpu(ino->size); in ubifs_recover_size() [all …]
|
/fs/udf/ |
D | truncate.c | 79 inode->i_size == iinfo->i_lenExtents) in udf_truncate_tail_extent() 96 if (lbcount > inode->i_size) { in udf_truncate_tail_extent() 97 if (lbcount - inode->i_size >= inode->i_sb->s_blocksize) in udf_truncate_tail_extent() 103 (long long)inode->i_size, in udf_truncate_tail_extent() 107 nelen = elen - (lbcount - inode->i_size); in udf_truncate_tail_extent() 120 iinfo->i_lenExtents = inode->i_size; in udf_truncate_tail_extent() 135 inode->i_size == iinfo->i_lenExtents) in udf_discard_prealloc() 207 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() 221 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents() 279 } else if (inode->i_size) { in udf_truncate_extents() [all …]
|
D | file.c | 53 memcpy(kaddr, iinfo->i_ext.i_data + iinfo->i_lenEAttr, inode->i_size); in udf_adinicb_readpage() 72 memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr, kaddr, inode->i_size); in udf_adinicb_writepage() 119 pos = inode->i_size; in udf_file_aio_write() 132 if (pos + count > inode->i_size) in udf_file_aio_write() 135 iinfo->i_lenAlloc = inode->i_size; in udf_file_aio_write()
|
/fs/xfs/linux-2.6/ |
D | xfs_lrw.c | 208 if (*offset == ip->i_size) { in xfs_read() 344 if (new_size > ip->i_size) in xfs_splice_write() 358 if (*ppos > ip->i_size) { in xfs_splice_write() 360 if (*ppos > ip->i_size) in xfs_splice_write() 361 ip->i_size = *ppos; in xfs_splice_write() 368 if (ip->i_d.di_size > ip->i_size) in xfs_splice_write() 369 ip->i_d.di_size = ip->i_size; in xfs_splice_write() 642 if ((file->f_flags & O_APPEND) && pos != xip->i_size) in xfs_write() 656 if (!need_i_mutex && (mapping->nrpages || pos > xip->i_size)) { in xfs_write() 667 if (new_size > xip->i_size) in xfs_write() [all …]
|
/fs/jffs2/ |
D | file.c | 142 if (pageofs > inode->i_size) { in jffs2_write_begin() 150 (unsigned int)inode->i_size, pageofs)); in jffs2_write_begin() 170 ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); in jffs2_write_begin() 172 ri.offset = cpu_to_je32(inode->i_size); in jffs2_write_begin() 173 ri.dsize = cpu_to_je32(pageofs - inode->i_size); in jffs2_write_begin() 202 inode->i_size = pageofs; in jffs2_write_begin() 275 ri->isize = cpu_to_je32((uint32_t)inode->i_size); in jffs2_write_end() 297 if (inode->i_size < pos + writtenlen) { in jffs2_write_end() 298 inode->i_size = pos + writtenlen; in jffs2_write_end() 299 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_write_end()
|
D | fs.c | 106 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr() 114 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr() 117 ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); in jffs2_do_setattr() 118 ri->offset = cpu_to_je32(inode->i_size); in jffs2_do_setattr() 151 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) in jffs2_do_setattr() 154 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr() 156 inode->i_size = iattr->ia_size; in jffs2_do_setattr() 157 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr() 176 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) { in jffs2_do_setattr() 178 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr() [all …]
|
/fs/ntfs/ |
D | aops.c | 72 loff_t i_size; in ntfs_end_buffer_async_read() local 81 i_size = i_size_read(vi); in ntfs_end_buffer_async_read() 83 if (unlikely(init_size > i_size)) { in ntfs_end_buffer_async_read() 85 init_size = i_size; in ntfs_end_buffer_async_read() 186 loff_t i_size; in ntfs_read_block() local 236 i_size = i_size_read(vi); in ntfs_read_block() 238 if (unlikely(init_size > i_size)) { in ntfs_read_block() 240 init_size = i_size; in ntfs_read_block() 400 loff_t i_size; in ntfs_readpage() local 413 i_size = i_size_read(vi); in ntfs_readpage() [all …]
|
D | compress.c | 123 const loff_t i_size, const s64 initialized_size) in handle_bounds_compressed_page() argument 126 (initialized_size < i_size)) in handle_bounds_compressed_page() 171 const u32 cb_size, const loff_t i_size, in ntfs_decompress() argument 234 handle_bounds_compressed_page(dp, i_size, in ntfs_decompress() 483 loff_t i_size; in ntfs_read_compressed_block() local 559 i_size = i_size_read(VFS_I(ni)); in ntfs_read_compressed_block() 562 max_page = ((i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT) - in ntfs_read_compressed_block() 844 handle_bounds_compressed_page(page, i_size, in ntfs_read_compressed_block() 868 cb_pos, cb_size - (cb_pos - cb), i_size, in ntfs_read_compressed_block()
|
/fs/hpfs/ |
D | inode.c | 20 i->i_size = -1; in hpfs_init_inode() 81 i->i_size = ea_size; in hpfs_read_inode() 105 i->i_size = 0; in hpfs_read_inode() 127 i->i_size = 2048 * n_dnodes; in hpfs_read_inode() 135 i->i_size = fnode->file_size; in hpfs_read_inode() 136 i->i_blocks = ((i->i_size + 511) >> 9) + 1; in hpfs_read_inode() 138 hpfs_i(i)->mmu_private = i->i_size; in hpfs_read_inode() 228 fnode->file_size = i->i_size; in hpfs_write_inode_nolock() 229 if (de) de->file_size = i->i_size; in hpfs_write_inode_nolock() 271 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
|
/fs/squashfs/ |
D | inode.c | 73 inode->i_size = 0; in squashfs_new_inode() 161 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode() 164 inode->i_blocks = ((inode->i_size - 1) >> 9) + 1; in squashfs_read_inode() 204 inode->i_size = le64_to_cpu(sqsh_ino->file_size); in squashfs_read_inode() 207 inode->i_blocks = ((inode->i_size - in squashfs_read_inode() 232 inode->i_size = le16_to_cpu(sqsh_ino->file_size); in squashfs_read_inode() 256 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode() 283 inode->i_size = le32_to_cpu(sqsh_ino->symlink_size); in squashfs_read_inode()
|
/fs/partitions/ |
D | ibm.c | 47 loff_t i_size; in ibm_partition() local 63 i_size = i_size_read(bdev->bd_inode); in ibm_partition() 64 if (i_size == 0) in ibm_partition() 123 size = i_size >> 9; in ibm_partition() 134 size = i_size >> 9; in ibm_partition()
|
/fs/jfs/ |
D | resize.c | 100 VolumeSize = sb->s_bdev->bd_inode->i_size >> sb->s_blocksize_bits; in jfs_extendfs() 213 sbi->direct_inode->i_size = sb->s_bdev->bd_inode->i_size; in jfs_extendfs() 351 nPages = ipbmap->i_size >> L2PSIZE; in jfs_extendfs() 395 ipbmap->i_size += xlen << sbi->l2bsize; in jfs_extendfs() 476 ipbmap2->i_size = ipbmap->i_size; in jfs_extendfs()
|
D | inode.c | 59 if (inode->i_size >= IDATASIZE) { in jfs_iget() 68 JFS_IP(inode)->i_inline[inode->i_size] = '\0'; in jfs_iget() 206 if (((lblock64 << ip->i_sb->s_blocksize_bits) < ip->i_size) && in jfs_get_block() 377 jfs_info("jfs_truncate: size = 0x%lx", (ulong) ip->i_size); in jfs_truncate() 379 nobh_truncate_page(ip->i_mapping, ip->i_size, jfs_get_block); in jfs_truncate() 382 jfs_truncate_nolock(ip, ip->i_size); in jfs_truncate()
|
/fs/isofs/ |
D | rock.c | 435 inode->i_size = symlink_len; in parse_rock_ridge_inode_internal() 440 inode->i_size += in parse_rock_ridge_inode_internal() 444 inode->i_size += 1; in parse_rock_ridge_inode_internal() 447 inode->i_size += 2; in parse_rock_ridge_inode_internal() 451 inode->i_size += 1; in parse_rock_ridge_inode_internal() 468 inode->i_size += in parse_rock_ridge_inode_internal() 479 inode->i_size += 1; in parse_rock_ridge_inode_internal() 482 symlink_len = inode->i_size; in parse_rock_ridge_inode_internal() 504 inode->i_size = reloc->i_size; in parse_rock_ridge_inode_internal() 543 inode->i_size = in parse_rock_ridge_inode_internal()
|
/fs/affs/ |
D | file.c | 63 if (inode->i_size != AFFS_I(inode)->mmu_private) in affs_file_release() 582 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs() 586 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs() 599 if (((page->index + 1) << PAGE_CACHE_SHIFT) > inode->i_size) { in affs_readpage_ofs() 600 to = inode->i_size & ~PAGE_CACHE_MASK; in affs_readpage_ofs() 762 if (tmp > inode->i_size) in affs_write_end_ofs() 763 inode->i_size = AFFS_I(inode)->mmu_private = tmp; in affs_write_end_ofs() 813 (u32)inode->i_ino, (u32)AFFS_I(inode)->mmu_private, (u32)inode->i_size); in affs_truncate() 817 if (inode->i_size) { in affs_truncate() 818 last_blk = ((u32)inode->i_size - 1) / AFFS_SB(sb)->s_data_blksize; in affs_truncate() [all …]
|
/fs/reiserfs/ |
D | inode.c | 369 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0() 371 if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) { in _get_block_create_0() 373 inode->i_size - (le_ih_k_offset(ih) - 1) - in _get_block_create_0() 651 && inode->i_size < i_block_size(inode) * 4) in reiserfs_get_block() 653 && inode->i_size < i_block_size(inode))) in reiserfs_get_block() 658 if ((new_offset + inode->i_sb->s_blocksize - 1) > inode->i_size) { in reiserfs_get_block() 977 inode->i_size += in reiserfs_get_block() 1069 ((inode->i_size + in real_space_diff() 1079 return inode->i_size + in to_real_used_space() 1148 inode->i_size = sd_v1_size(sd); in init_inode() [all …]
|
/fs/gfs2/ |
D | ops_address.c | 103 loff_t i_size = i_size_read(inode); in gfs2_writepage_common() local 104 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in gfs2_writepage_common() 112 offset = i_size & (PAGE_CACHE_SIZE-1); in gfs2_writepage_common() 270 loff_t i_size = i_size_read(inode); in gfs2_write_jdata_pagevec() local 271 pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; in gfs2_write_jdata_pagevec() 272 unsigned offset = i_size & (PAGE_CACHE_SIZE-1); in gfs2_write_jdata_pagevec() 703 if (pos + len > ip->i_inode.i_size) in gfs2_write_begin() 704 vmtruncate(&ip->i_inode, ip->i_inode.i_size); in gfs2_write_begin() 784 if (inode->i_size < to) { in gfs2_stuffed_write_end() 786 ip->i_disksize = inode->i_size; in gfs2_stuffed_write_end() [all …]
|
/fs/fat/ |
D | file.c | 152 loff_t start = inode->i_size, count = size - inode->i_size; in fat_cont_expand() 247 if (MSDOS_I(inode)->mmu_private > inode->i_size) in fat_truncate() 248 MSDOS_I(inode)->mmu_private = inode->i_size; in fat_truncate() 250 nr_clusters = (inode->i_size + (cluster_size - 1)) >> sbi->cluster_bits; in fat_truncate() 335 if (attr->ia_size > inode->i_size) { in fat_setattr()
|
/fs/9p/ |
D | vfs_file.c | 75 inode->i_size = 0; in v9fs_file_open() 242 if (*offset > inode->i_size) { in v9fs_file_write() 243 inode->i_size = *offset; in v9fs_file_write() 244 inode->i_blocks = (inode->i_size + 512 - 1) >> 9; in v9fs_file_write()
|
/fs/hfsplus/ |
D | extents.c | 354 …if (HFSPLUS_SB(sb).alloc_file->i_size * 8 < HFSPLUS_SB(sb).total_blocks - HFSPLUS_SB(sb).free_bloc… in hfsplus_file_extend() 356 printk(KERN_ERR "hfs: extend alloc file! (%Lu,%u,%u)\n", HFSPLUS_SB(sb).alloc_file->i_size * 8, in hfsplus_file_extend() 445 (long long)HFSPLUS_I(inode).phys_size, inode->i_size); in hfsplus_file_truncate() 446 if (inode->i_size > HFSPLUS_I(inode).phys_size) { in hfsplus_file_truncate() 450 u32 size = inode->i_size; in hfsplus_file_truncate() 463 } else if (inode->i_size == HFSPLUS_I(inode).phys_size) in hfsplus_file_truncate() 466 blk_cnt = (inode->i_size + HFSPLUS_SB(sb).alloc_blksz - 1) >> HFSPLUS_SB(sb).alloc_blksz_shift; in hfsplus_file_truncate() 502 HFSPLUS_I(inode).phys_size = inode->i_size; in hfsplus_file_truncate() 503 HFSPLUS_I(inode).fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfsplus_file_truncate()
|
/fs/omfs/ |
D | inode.c | 49 inode->i_size = sbi->s_sys_blocksize; in omfs_new_inode() 55 inode->i_size = 0; in omfs_new_inode() 127 oi->i_size = cpu_to_be64(inode->i_size); in omfs_write_inode() 179 inode->i_size = 0; in omfs_delete_inode() 234 inode->i_size = sbi->s_sys_blocksize; in omfs_iget() 240 inode->i_size = be64_to_cpu(oi->i_size); in omfs_iget()
|
/fs/nfs/ |
D | internal.h | 271 loff_t i_size = i_size_read(page->mapping->host); in nfs_page_length() local 273 if (i_size > 0) { in nfs_page_length() 274 pgoff_t end_index = (i_size - 1) >> PAGE_CACHE_SHIFT; in nfs_page_length() 278 return ((i_size - 1) & ~PAGE_CACHE_MASK) + 1; in nfs_page_length()
|
/fs/smbfs/ |
D | file.c | 159 if (offset > inode->i_size) in smb_writepage_sync() 160 inode->i_size = offset; in smb_writepage_sync() 186 end_index = inode->i_size >> PAGE_CACHE_SHIFT; in smb_writepage() 192 offset = inode->i_size & (PAGE_CACHE_SIZE-1); in smb_writepage() 236 (long)dentry->d_inode->i_size, in smb_file_aio_read() 365 (long) file->f_pos, (long) dentry->d_inode->i_size, in smb_file_aio_write()
|