Home
last modified time | relevance | path

Searched refs:i_size (Results 1 – 25 of 252) sorted by relevance

1234567891011

/fs/ubifs/
Ddir.c124 inode->i_size = ui->ui_size = UBIFS_INO_NODE_SZ; in ubifs_new_inode()
319 dir->i_size += sz_change; in ubifs_create()
320 dir_ui->ui_size = dir->i_size; in ubifs_create()
334 dir->i_size -= sz_change; in ubifs_create()
335 dir_ui->ui_size = dir->i_size; in ubifs_create()
733 dir->i_size += sz_change; in ubifs_link()
734 dir_ui->ui_size = dir->i_size; in ubifs_link()
747 dir->i_size -= sz_change; in ubifs_link()
748 dir_ui->ui_size = dir->i_size; in ubifs_link()
807 dir->i_size -= sz_change; in ubifs_unlink()
[all …]
Dfile.c107 loff_t i_size = i_size_read(inode); in do_readpage() local
110 inode->i_ino, page->index, i_size, page->flags); in do_readpage()
117 beyond = (i_size + UBIFS_BLOCK_SIZE - 1) >> UBIFS_BLOCK_SHIFT; in do_readpage()
147 int ilen = i_size & (UBIFS_BLOCK_SIZE - 1); in do_readpage()
225 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in write_begin_slow()
229 inode->i_ino, pos, len, inode->i_size); in write_begin_slow()
429 int uninitialized_var(err), appending = !!(pos + len > inode->i_size); in ubifs_write_begin()
433 ubifs_assert(c, ubifs_inode(inode)->ui_size == inode->i_size); in ubifs_write_begin()
544 int appending = !!(end_pos > inode->i_size); in ubifs_write_end()
547 inode->i_ino, pos, page->index, len, copied, inode->i_size); in ubifs_write_end()
[all …]
Drecovery.c1232 loff_t i_size; member
1246 static int add_ino(struct ubifs_info *c, ino_t inum, loff_t i_size, in add_ino() argument
1266 e->i_size = i_size; in add_ino()
1368 e->i_size = new_size; in ubifs_recover_size_accum()
1408 loff_t i_size; in fix_size_in_place() local
1420 i_size = le64_to_cpu(ino->size); in fix_size_in_place()
1421 if (i_size >= e->d_size) in fix_size_in_place()
1444 (unsigned long)e->inum, lnum, offs, i_size, e->d_size); in fix_size_in_place()
1449 (unsigned long)e->inum, e->i_size, e->d_size, err); in fix_size_in_place()
1475 if (inode->i_size >= e->d_size) { in inode_fix_size()
[all …]
/fs/ntfs/
Daops.c59 loff_t i_size; in ntfs_end_buffer_async_read() local
68 i_size = i_size_read(vi); in ntfs_end_buffer_async_read()
70 if (unlikely(init_size > i_size)) { in ntfs_end_buffer_async_read()
72 init_size = i_size; in ntfs_end_buffer_async_read()
169 loff_t i_size; in ntfs_read_block() local
219 i_size = i_size_read(vi); in ntfs_read_block()
221 if (unlikely(init_size > i_size)) { in ntfs_read_block()
223 init_size = i_size; in ntfs_read_block()
383 loff_t i_size; in ntfs_readpage() local
396 i_size = i_size_read(vi); in ntfs_readpage()
[all …]
Dcompress.c106 const loff_t i_size, const s64 initialized_size) in handle_bounds_compressed_page() argument
109 (initialized_size < i_size)) in handle_bounds_compressed_page()
155 u8 *const cb_start, const u32 cb_size, const loff_t i_size, in ntfs_decompress() argument
215 handle_bounds_compressed_page(dp, i_size, in ntfs_decompress()
464 loff_t i_size; in ntfs_read_compressed_block() local
543 i_size = i_size_read(VFS_I(ni)); in ntfs_read_compressed_block()
546 max_page = ((i_size + PAGE_SIZE - 1) >> PAGE_SHIFT) - in ntfs_read_compressed_block()
823 handle_bounds_compressed_page(page, i_size, in ntfs_read_compressed_block()
848 i_size, initialized_size); in ntfs_read_compressed_block()
/fs/udf/
Dtruncate.c78 inode->i_size == iinfo->i_lenExtents) in udf_truncate_tail_extent()
95 if (lbcount > inode->i_size) { in udf_truncate_tail_extent()
96 if (lbcount - inode->i_size >= inode->i_sb->s_blocksize) in udf_truncate_tail_extent()
100 (long long)inode->i_size, in udf_truncate_tail_extent()
104 nelen = elen - (lbcount - inode->i_size); in udf_truncate_tail_extent()
117 iinfo->i_lenExtents = inode->i_size; in udf_truncate_tail_extent()
132 inode->i_size == iinfo->i_lenExtents) in udf_discard_prealloc()
209 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents()
223 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents()
286 iinfo->i_lenExtents = inode->i_size; in udf_truncate_extents()
/fs/afs/
Ddir_edit.c196 loff_t i_size; in afs_edit_dir_add() local
202 i_size = i_size_read(&vnode->vfs_inode); in afs_edit_dir_add()
203 if (i_size > AFS_DIR_BLOCK_SIZE * AFS_DIR_MAX_BLOCKS || in afs_edit_dir_add()
204 (i_size & (AFS_DIR_BLOCK_SIZE - 1))) { in afs_edit_dir_add()
223 if (i_size == 0) in afs_edit_dir_add()
225 nr_blocks = i_size / AFS_DIR_BLOCK_SIZE; in afs_edit_dir_add()
301 i_size = AFS_DIR_BLOCK_SIZE; in afs_edit_dir_add()
302 i_size_write(&vnode->vfs_inode, i_size); in afs_edit_dir_add()
376 loff_t i_size; in afs_edit_dir_remove() local
381 i_size = i_size_read(&vnode->vfs_inode); in afs_edit_dir_remove()
[all …]
/fs/
Dstack.c13 loff_t i_size; in fsstack_copy_inode_size() local
22 i_size = i_size_read(src); in fsstack_copy_inode_size()
53 if (sizeof(i_size) > sizeof(long) || sizeof(i_blocks) > sizeof(long)) in fsstack_copy_inode_size()
55 i_size_write(dst, i_size); in fsstack_copy_inode_size()
57 if (sizeof(i_size) > sizeof(long) || sizeof(i_blocks) > sizeof(long)) in fsstack_copy_inode_size()
/fs/erofs/
Dinode.c67 inode->i_size = le64_to_cpu(die->i_size); in erofs_read_inode()
106 inode->i_size = le32_to_cpu(dic->i_size); in erofs_read_inode()
120 inode->i_blocks = roundup(inode->i_size, EROFS_BLKSIZ) >> 9; in erofs_read_inode()
140 inode->i_size >= PAGE_SIZE) { in erofs_fill_symlink()
145 lnk = kmalloc(inode->i_size + 1, GFP_KERNEL); in erofs_fill_symlink()
151 if (m_pofs + inode->i_size > PAGE_SIZE) { in erofs_fill_symlink()
160 memcpy(lnk, data + m_pofs, inode->i_size); in erofs_fill_symlink()
161 lnk[inode->i_size] = '\0'; in erofs_fill_symlink()
/fs/jffs2/
Dfile.c149 if (pageofs > inode->i_size) { in jffs2_write_begin()
157 (unsigned int)inode->i_size, pageofs); in jffs2_write_begin()
177 ri.isize = cpu_to_je32(max((uint32_t)inode->i_size, pageofs)); in jffs2_write_begin()
179 ri.offset = cpu_to_je32(inode->i_size); in jffs2_write_begin()
180 ri.dsize = cpu_to_je32(pageofs - inode->i_size); in jffs2_write_begin()
210 inode->i_size = pageofs; in jffs2_write_begin()
285 ri->isize = cpu_to_je32((uint32_t)inode->i_size); in jffs2_write_end()
307 if (inode->i_size < pos + writtenlen) { in jffs2_write_end()
308 inode->i_size = pos + writtenlen; in jffs2_write_end()
309 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_write_end()
Dfs.c115 ri->isize = cpu_to_je32((ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size); in jffs2_do_setattr()
123 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr()
126 ri->dsize = cpu_to_je32(iattr->ia_size - inode->i_size); in jffs2_do_setattr()
127 ri->offset = cpu_to_je32(inode->i_size); in jffs2_do_setattr()
160 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) in jffs2_do_setattr()
163 if (ivalid & ATTR_SIZE && inode->i_size < iattr->ia_size) { in jffs2_do_setattr()
165 inode->i_size = iattr->ia_size; in jffs2_do_setattr()
166 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
185 if (ivalid & ATTR_SIZE && inode->i_size > iattr->ia_size) { in jffs2_do_setattr()
187 inode->i_blocks = (inode->i_size + 511) >> 9; in jffs2_do_setattr()
[all …]
/fs/hpfs/
Dinode.c22 i->i_size = -1; in hpfs_init_inode()
84 i->i_size = ea_size; in hpfs_read_inode()
108 i->i_size = 0; in hpfs_read_inode()
130 i->i_size = 2048 * n_dnodes; in hpfs_read_inode()
138 i->i_size = le32_to_cpu(fnode->file_size); in hpfs_read_inode()
139 i->i_blocks = ((i->i_size + 511) >> 9) + 1; in hpfs_read_inode()
141 hpfs_i(i)->mmu_private = i->i_size; in hpfs_read_inode()
225 fnode->file_size = cpu_to_le32(i->i_size); in hpfs_write_inode_nolock()
226 if (de) de->file_size = cpu_to_le32(i->i_size); in hpfs_write_inode_nolock()
274 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_setattr()
Dfile.c70 i->i_blocks = 1 + ((i->i_size + 511) >> 9); in hpfs_truncate()
71 hpfs_i(i)->mmu_private = i->i_size; in hpfs_truncate()
72 hpfs_truncate_btree(i->i_sb, i->i_ino, 1, ((i->i_size + 511) >> 9)); in hpfs_truncate()
146 if (to > inode->i_size) { in hpfs_write_failed()
147 truncate_pagecache(inode, inode->i_size); in hpfs_write_failed()
/fs/jfs/
Dinode.c49 if (inode->i_size >= IDATASIZE) { in jfs_iget()
60 inode->i_link[inode->i_size] = '\0'; in jfs_iget()
215 if (((lblock64 << ip->i_sb->s_blocksize_bits) < ip->i_size) && in jfs_get_block()
309 if (to > inode->i_size) { in jfs_write_failed()
310 truncate_pagecache(inode, inode->i_size); in jfs_write_failed()
416 jfs_info("jfs_truncate: size = 0x%lx", (ulong) ip->i_size); in jfs_truncate()
418 nobh_truncate_page(ip->i_mapping, ip->i_size, jfs_get_block); in jfs_truncate()
421 jfs_truncate_nolock(ip, ip->i_size); in jfs_truncate()
/fs/affs/
Dfile.c38 if (inode->i_size != AFFS_I(inode)->mmu_private) in affs_file_release()
386 if (to > inode->i_size) { in affs_write_failed()
387 truncate_pagecache(inode, inode->i_size); in affs_write_failed()
602 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs()
606 inode->i_size = AFFS_I(inode)->mmu_private = newsize; in affs_extent_file_ofs()
619 if (((page->index + 1) << PAGE_SHIFT) > inode->i_size) { in affs_readpage_ofs()
620 to = inode->i_size & ~PAGE_MASK; in affs_readpage_ofs()
794 if (tmp > inode->i_size) in affs_write_end_ofs()
795 inode->i_size = AFFS_I(inode)->mmu_private = tmp; in affs_write_end_ofs()
845 inode->i_ino, AFFS_I(inode)->mmu_private, inode->i_size); in affs_truncate()
[all …]
/fs/9p/
Dv9fs_vfs.h77 static inline void v9fs_i_size_write(struct inode *inode, loff_t i_size) in v9fs_i_size_write() argument
84 if (sizeof(i_size) > sizeof(long)) in v9fs_i_size_write()
86 i_size_write(inode, i_size); in v9fs_i_size_write()
87 if (sizeof(i_size) > sizeof(long)) in v9fs_i_size_write()
Dvfs_addr.c245 loff_t i_size = i_size_read(inode); in v9fs_direct_IO() local
246 if (pos + n > i_size) in v9fs_direct_IO()
247 inode_add_bytes(inode, pos + n - i_size); in v9fs_direct_IO()
312 if (last_pos > inode->i_size) { in v9fs_write_end()
313 inode_add_bytes(inode, last_pos - inode->i_size); in v9fs_write_end()
/fs/squashfs/
Dinode.c66 inode->i_size = 0; in squashfs_new_inode()
155 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
158 inode->i_blocks = ((inode->i_size - 1) >> 9) + 1; in squashfs_read_inode()
199 inode->i_size = le64_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
203 inode->i_blocks = (inode->i_size - in squashfs_read_inode()
228 inode->i_size = le16_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
253 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
280 inode->i_size = le32_to_cpu(sqsh_ino->symlink_size); in squashfs_read_inode()
292 &offset, inode->i_size); in squashfs_read_inode()
/fs/reiserfs/
Dinode.c414 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0()
416 if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) { in _get_block_create_0()
418 inode->i_size - (le_ih_k_offset(ih) - 1) - in _get_block_create_0()
723 && inode->i_size < i_block_size(inode) * 4) in reiserfs_get_block()
725 && inode->i_size < i_block_size(inode))) in reiserfs_get_block()
730 if ((new_offset + inode->i_sb->s_blocksize - 1) > inode->i_size) { in reiserfs_get_block()
1097 inode->i_size += in reiserfs_get_block()
1193 ((inode->i_size + in real_space_diff()
1203 return inode->i_size + in to_real_used_space()
1269 inode->i_size = sd_v1_size(sd); in init_inode()
[all …]
/fs/isofs/
Drock.c455 inode->i_size = symlink_len; in parse_rock_ridge_inode_internal()
460 inode->i_size += in parse_rock_ridge_inode_internal()
464 inode->i_size += 1; in parse_rock_ridge_inode_internal()
467 inode->i_size += 2; in parse_rock_ridge_inode_internal()
471 inode->i_size += 1; in parse_rock_ridge_inode_internal()
488 inode->i_size += in parse_rock_ridge_inode_internal()
499 inode->i_size += 1; in parse_rock_ridge_inode_internal()
502 symlink_len = inode->i_size; in parse_rock_ridge_inode_internal()
534 inode->i_size = reloc->i_size; in parse_rock_ridge_inode_internal()
572 inode->i_size = in parse_rock_ridge_inode_internal()
/fs/adfs/
Dinode.c49 if (to > inode->i_size) in adfs_write_failed()
50 truncate_pagecache(inode, inode->i_size); in adfs_write_failed()
251 inode->i_size = obj->size; in adfs_iget()
253 inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> in adfs_iget()
279 ADFS_I(inode)->mmu_private = inode->i_size; in adfs_iget()
362 obj.size = inode->i_size; in adfs_write_inode()
/fs/minix/
Dinode.c32 inode->i_size = 0; in minix_evict_inode()
400 if (to > inode->i_size) { in minix_write_failed()
401 truncate_pagecache(inode, inode->i_size); in minix_write_failed()
475 inode->i_size = raw_inode->i_size; in V1_minix_iget()
508 inode->i_size = raw_inode->i_size; in V2_minix_iget()
560 raw_inode->i_size = inode->i_size; in V1_minix_update_inode()
587 raw_inode->i_size = inode->i_size; in V2_minix_update_inode()
/fs/hfsplus/
Dinode.c39 if (to > inode->i_size) { in hfsplus_write_failed()
40 truncate_pagecache(inode, inode->i_size); in hfsplus_write_failed()
256 if (attr->ia_size > inode->i_size) { in hfsplus_setattr()
402 inode->i_size = 2; in hfsplus_new_inode()
439 inode->i_size = 0; in hfsplus_delete_inode()
443 inode->i_size = 0; in hfsplus_delete_inode()
466 hip->phys_size = inode->i_size = be64_to_cpu(fork->total_size); in hfsplus_inode_read_fork()
468 (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfsplus_inode_read_fork()
484 fork->total_size = cpu_to_be64(inode->i_size); in hfsplus_inode_write_fork()
506 inode->i_size = 2 + be32_to_cpu(folder->valence); in hfsplus_cat_read_inode()
[all …]
/fs/iomap/
Ddirect-io.c29 loff_t i_size; member
88 if (offset + ret > dio->i_size && in iomap_dio_complete()
90 ret = dio->i_size - offset; in iomap_dio_complete()
350 loff_t size = inode->i_size; in iomap_dio_inline_actor()
427 dio->i_size = i_size_read(inode); in iomap_dio_rw()
438 if (pos >= dio->i_size) in iomap_dio_rw()
508 if (iov_iter_rw(iter) == READ && pos >= dio->i_size) { in iomap_dio_rw()
514 iov_iter_revert(iter, pos - dio->i_size); in iomap_dio_rw()
/fs/cramfs/
Dinode.c131 inode->i_size = cramfs_inode->size; in get_cramfs_inode()
212 devsize = mapping->host->i_size >> PAGE_SHIFT; in cramfs_blkdev_read()
344 partial = offset_in_page(inode->i_size); in cramfs_last_page_is_shared()
347 last_page = inode->i_size >> PAGE_SHIFT; in cramfs_last_page_is_shared()
378 max_pages = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in cramfs_physmem_mmap()
464 max_pages = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in cramfs_physmem_get_unmapped_area()
710 if (ctx->pos >= inode->i_size) in cramfs_readdir()
721 while (offset < inode->i_size) { in cramfs_readdir()
773 while (offset < dir->i_size) { in cramfs_lookup()
827 maxblock = (inode->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT; in cramfs_readpage()
[all …]

1234567891011