/linux-2.4.37.9/fs/hfs/ |
D | inode.c | 65 inode->i_size = fk->lsize; in init_file_inode() 162 inode->i_size = attr->ia_size; in __hfs_notify_change() 163 if (inode->i_size > HFS_FORK_MAX) in __hfs_notify_change() 164 inode->i_size = HFS_FORK_MAX; in __hfs_notify_change() 366 inode->i_size = sizeof(struct hfs_cap_info); in hfs_cap_ifill() 378 inode->u.hfs_i.mmu_private = inode->i_size; in hfs_cap_ifill() 383 inode->i_size = hdir->files + hdir->dirs + 5; in hfs_cap_ifill() 423 inode->i_size += HFS_DBL_HDR_LEN; in hfs_dbl_ifill() 426 inode->i_size = HFS_DBL_HDR_LEN; in hfs_dbl_ifill() 438 inode->u.hfs_i.mmu_private = inode->i_size; in hfs_dbl_ifill() [all …]
|
D | dir_cap.c | 216 if (filp->f_pos < (dir->i_size - 3)) { in cap_readdir() 224 while (filp->f_pos < (dir->i_size - 3)) { in cap_readdir() 247 if (filp->f_pos == (dir->i_size - 3)) { in cap_readdir() 261 if (filp->f_pos == (dir->i_size - 2)) { in cap_readdir() 274 if (filp->f_pos == (dir->i_size - 1)) { in cap_readdir()
|
D | file_cap.c | 96 offset += file->f_dentry->d_inode->i_size; in cap_info_llseek() 139 size = inode->i_size; in cap_info_read() 204 pos = (filp->f_flags & O_APPEND) ? inode->i_size : *ppos; in cap_info_write() 216 if (last > inode->i_size) in cap_info_write() 217 inode->i_size = last; in cap_info_write()
|
D | file.c | 156 size = inode->i_size; in hfs_file_read() 198 pos = (filp->f_flags & O_APPEND) ? inode->i_size : *ppos; in hfs_file_write() 210 if (pos > inode->i_size) { in hfs_file_write() 211 inode->i_size = pos; in hfs_file_write() 230 fork->lsize = inode->i_size; in hfs_file_truncate() 234 inode->i_size = fork->lsize; in hfs_file_truncate()
|
/linux-2.4.37.9/fs/jffs2/ |
D | file.c | 158 ri->isize = (ivalid & ATTR_SIZE)?iattr->ia_size:inode->i_size; in jffs2_setattr() 166 if (inode->i_size < ri->isize) { in jffs2_setattr() 169 ri->dsize = ri->isize - inode->i_size; in jffs2_setattr() 170 ri->offset = inode->i_size; in jffs2_setattr() 200 if (inode->i_size > ri->isize) { in jffs2_setattr() 205 if (inode->i_size < ri->isize) { in jffs2_setattr() 207 inode->i_size = ri->isize; in jffs2_setattr() 341 if (pageofs > inode->i_size) { in jffs2_prepare_write() 349 (unsigned int)inode->i_size, pageofs)); in jffs2_prepare_write() 368 ri.isize = max((__u32)inode->i_size, pageofs); in jffs2_prepare_write() [all …]
|
/linux-2.4.37.9/fs/udf/ |
D | file.c | 68 memcpy(kaddr, bh->b_data + udf_ext0_offset(inode), inode->i_size); in udf_adinicb_readpage() 99 memcpy(bh->b_data + udf_ext0_offset(inode), kaddr, inode->i_size); in udf_adinicb_writepage() 140 if (to > inode->i_size) in udf_adinicb_commit_write() 141 inode->i_size = to; in udf_adinicb_commit_write() 164 pos = inode->i_size; in udf_file_write() 183 if (pos + count > inode->i_size) in udf_file_write() 186 UDF_I_LENALLOC(inode) = inode->i_size; in udf_file_write() 358 if ((inode->i_size & 0xFFFFFFFF80000000ULL) && !(filp->f_flags & O_LARGEFILE)) in udf_open_file()
|
D | truncate.c | 73 int first_block = inode->i_size >> inode->i_sb->s_blocksize_bits; in udf_truncate_extents() 85 offset += (inode->i_size & (inode->i_sb->s_blocksize - 1)); in udf_truncate_extents() 181 else if (inode->i_size) in udf_truncate_extents() 233 UDF_I_LENEXTENTS(inode) = inode->i_size; in udf_truncate_extents()
|
/linux-2.4.37.9/fs/hpfs/ |
D | inode.c | 70 i->i_size = -1; in hpfs_read_inode() 132 i->i_size = ea_size; in hpfs_read_inode() 156 i->i_size = 0; in hpfs_read_inode() 177 i->i_size = 2048 * n_dnodes; in hpfs_read_inode() 185 i->i_size = fnode->file_size; in hpfs_read_inode() 186 i->i_blocks = ((i->i_size + 511) >> 9) + 1; in hpfs_read_inode() 188 i->u.hpfs_i.mmu_private = i->i_size; in hpfs_read_inode() 269 fnode->file_size = i->i_size; in hpfs_write_inode_nolock() 270 if (de) de->file_size = i->i_size; in hpfs_write_inode_nolock() 305 if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) in hpfs_notify_change()
|
D | file.c | 65 i->i_blocks = 1 + ((i->i_size + 511) >> 9); in hpfs_truncate() 66 i->u.hpfs_i.mmu_private = i->i_size; in hpfs_truncate() 67 hpfs_truncate_btree(i->i_sb, i->i_ino, 1, ((i->i_size + 511) >> 9)); in hpfs_truncate()
|
/linux-2.4.37.9/fs/isofs/ |
D | rock.c | 334 inode->i_size = symlink_len; in parse_rock_ridge_inode_internal() 339 inode->i_size += slp->len; in parse_rock_ridge_inode_internal() 342 inode->i_size += 1; in parse_rock_ridge_inode_internal() 345 inode->i_size += 2; in parse_rock_ridge_inode_internal() 349 inode->i_size += 1; in parse_rock_ridge_inode_internal() 360 && ((oldslp->flags & 1) == 0) ) inode->i_size += 1; in parse_rock_ridge_inode_internal() 368 inode->i_size += 1; in parse_rock_ridge_inode_internal() 371 symlink_len = inode->i_size; in parse_rock_ridge_inode_internal() 388 inode->i_size = reloc->i_size; in parse_rock_ridge_inode_internal() 410 inode->i_size = isonum_733(rr->u.ZF.real_size); in parse_rock_ridge_inode_internal()
|
/linux-2.4.37.9/fs/ufs/ |
D | dir.c | 74 while (!error && !stored && filp->f_pos < inode->i_size) { in ufs_readdir() 111 while (!error && filp->f_pos < inode->i_size in ufs_readdir() 209 if ((block << sb->s_blocksize_bits) >= dir->i_size) in ufs_find_entry() 217 for (block = 0, offset = 0; offset < dir->i_size; block++) { in ufs_find_entry() 244 while ((char *) de < dlimit && offset < dir->i_size) { in ufs_find_entry() 273 dir->i_size) in ufs_find_entry() 311 dir->i_ino, dir->i_size, error_msg, offset, in ufs_check_dir_entry() 404 if (dir->i_size <= offset) { in ufs_add_link() 405 if (dir->i_size == 0) { in ufs_add_link() 413 dir->i_size = offset + UFS_SECTOR_SIZE; in ufs_add_link() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | inode.c | 340 if ((le_ih_k_offset(ih) + path.pos_in_item) > inode->i_size) in _get_block_create_0() 342 if ((le_ih_k_offset(ih) - 1 + ih_item_len(ih)) > inode->i_size) { in _get_block_create_0() 343 chars = inode->i_size - (le_ih_k_offset(ih) - 1) - path.pos_in_item; in _get_block_create_0() 585 if ( (have_large_tails (inode->i_sb) && inode->i_size < block_size (inode)*4) || in reiserfs_get_block() 586 (have_small_tails (inode->i_sb) && inode->i_size < block_size(inode)) ) in reiserfs_get_block() 594 if ((new_offset + inode->i_sb->s_blocksize - 1) > inode->i_size) { in reiserfs_get_block() 858 inode->i_size += blocks_needed << inode->i_blkbits; in reiserfs_get_block() 954 inode->i_size = sd_v1_size(sd); in init_inode() 961 blocks = (inode->i_size + 511) >> 9; in init_inode() 985 inode->i_size = sd_v2_size(sd); in init_inode() [all …]
|
D | ioctl.c | 103 if (inode->i_size == 0) { in reiserfs_unpack() 118 write_from = inode->i_size & (blocksize - 1) ; in reiserfs_unpack() 129 index = inode->i_size >> PAGE_CACHE_SHIFT ; in reiserfs_unpack()
|
/linux-2.4.37.9/mm/ |
D | shmem.c | 192 ((loff_t) index << PAGE_CACHE_SHIFT) >= inode->i_size) in shmem_swp_alloc() 221 ((loff_t) index << PAGE_CACHE_SHIFT) >= inode->i_size) { in shmem_swp_alloc() 363 index = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in shmem_truncate() 382 truncate_inode_pages(inode->i_mapping, inode->i_size); in shmem_truncate() 401 if (attr->ia_size < inode->i_size) { in shmem_notify_change() 447 inode->i_size = 0; in shmem_delete_inode() 896 inode->i_size = 2 * BOGO_DIRENT_SIZE; in shmem_get_inode() 964 if (pos > inode->i_size) in shmem_commit_write() 965 inode->i_size = pos; in shmem_commit_write() 1025 if (pos > inode->i_size) in shmem_file_write() [all …]
|
/linux-2.4.37.9/fs/smbfs/ |
D | file.c | 159 if (offset > inode->i_size) in smb_writepage_sync() 160 inode->i_size = offset; in smb_writepage_sync() 188 end_index = inode->i_size >> PAGE_CACHE_SHIFT; in smb_writepage() 194 offset = inode->i_size & (PAGE_CACHE_SIZE-1); in smb_writepage() 236 (long)dentry->d_inode->i_size, in smb_file_read() 325 (long) file->f_pos, (long) dentry->d_inode->i_size, in smb_file_write()
|
/linux-2.4.37.9/fs/affs/ |
D | file.c | 607 inode->i_size = AFFS_INODE->mmu_private = newsize; in affs_extent_file_ofs() 611 inode->i_size = AFFS_INODE->mmu_private = size; in affs_extent_file_ofs() 624 if (((page->index + 1) << PAGE_CACHE_SHIFT) > inode->i_size) { in affs_readpage_ofs() 625 to = inode->i_size & ~PAGE_CACHE_MASK; in affs_readpage_ofs() 650 size = inode->i_size; in affs_prepare_write_ofs() 778 if (tmp > inode->i_size) in affs_commit_write_ofs() 779 inode->i_size = AFFS_INODE->mmu_private = tmp; in affs_commit_write_ofs() 826 (u32)inode->i_ino, (u32)AFFS_INODE->mmu_private, (u32)inode->i_size); in affs_truncate() 830 if (inode->i_size) { in affs_truncate() 831 last_blk = ((u32)inode->i_size - 1) / AFFS_SB->s_data_blksize; in affs_truncate() [all …]
|
D | inode.c | 68 inode->i_size = 0; in affs_read_inode() 139 AFFS_INODE->mmu_private = inode->i_size = size; in affs_read_inode() 140 if (inode->i_size) { in affs_read_inode() 200 tail->size = cpu_to_be32(inode->i_size); in affs_write_inode() 258 if (inode->i_size != AFFS_INODE->mmu_private) in affs_put_inode() 271 inode->i_size = 0; in affs_delete_inode()
|
/linux-2.4.37.9/fs/cramfs/ |
D | inode.c | 52 inode->i_size = cramfs_inode->size; in get_cramfs_inode() 72 inode->i_size = 0; in get_cramfs_inode() 142 devsize = mapping->host->i_size >> PAGE_CACHE_SHIFT; in cramfs_read() 289 if (offset >= inode->i_size) in cramfs_readdir() 296 while (offset < inode->i_size) { in cramfs_readdir() 340 while (offset < dir->i_size) { in cramfs_lookup() 391 maxblock = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in cramfs_readpage()
|
/linux-2.4.37.9/fs/efs/ |
D | file.c | 27 inode->i_size); in efs_get_block() 56 inode->i_size); in efs_bmap()
|
/linux-2.4.37.9/fs/minix/ |
D | inode.c | 32 inode->i_size = 0; in minix_delete_inode() 364 inode->i_size = raw_inode->i_size; in V1_minix_read_inode() 391 inode->i_size = raw_inode->i_size; in V2_minix_read_inode() 429 raw_inode->i_size = inode->i_size; in V1_minix_update_inode() 455 raw_inode->i_size = inode->i_size; in V2_minix_update_inode()
|
/linux-2.4.37.9/fs/jfs/ |
D | inode.c | 94 if (inode->i_size >= IDATASIZE) { in jfs_read_inode() 239 if (((lblock64 << ip->i_sb->s_blocksize_bits) < ip->i_size) && in jfs_get_block() 394 jfs_info("jfs_truncate: size = 0x%lx", (ulong) ip->i_size); in jfs_truncate() 396 block_truncate_page(ip->i_mapping, ip->i_size, jfs_get_block); in jfs_truncate() 399 jfs_truncate_nolock(ip, ip->i_size); in jfs_truncate()
|
/linux-2.4.37.9/fs/sysv/ |
D | inode.c | 168 inode->i_size = fs32_to_cpu(sb, raw_inode->i_size); in sysv_read_inode() 211 raw_inode->i_size = cpu_to_fs32(sb, inode->i_size); in sysv_update_inode() 258 inode->i_size = 0; in sysv_delete_inode()
|
/linux-2.4.37.9/fs/fat/ |
D | file.c | 129 if (MSDOS_I(inode)->mmu_private > inode->i_size) in fat_truncate() 130 MSDOS_I(inode)->mmu_private = inode->i_size; in fat_truncate() 132 fat_free(inode, (inode->i_size + (cluster - 1)) >> sbi->cluster_bits); in fat_truncate()
|
/linux-2.4.37.9/fs/hfsplus/ |
D | extents.c | 315 if (anode->i_size * 8 < HFSPLUS_SB(sb).total_blocks - HFSPLUS_SB(sb).free_blocks + 8) { in hfsplus_extend_file() 449 (long long)HFSPLUS_I(inode).mmu_private, inode->i_size); in hfsplus_truncate() 450 if (inode->i_size == HFSPLUS_I(inode).mmu_private) in hfsplus_truncate() 452 if (inode->i_size > HFSPLUS_I(inode).mmu_private) { in hfsplus_truncate() 455 u32 size = inode->i_size - 1; in hfsplus_truncate() 467 inode->i_size = HFSPLUS_I(inode).mmu_private; in hfsplus_truncate() 473 blk_cnt = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfsplus_truncate() 510 HFSPLUS_I(inode).mmu_private = inode->i_size; in hfsplus_truncate()
|
/linux-2.4.37.9/fs/ |
D | stat.c | 61 if (inode->i_size > MAX_NON_LFS) in cp_old_stat() 64 tmp.st_size = inode->i_size; in cp_old_stat() 89 if (inode->i_size > MAX_NON_LFS) in cp_new_stat() 92 tmp.st_size = inode->i_size; in cp_new_stat() 298 tmp.st_size = inode->i_size; in cp_new_stat64()
|