Searched refs:oldsize (Results 1 – 11 of 11) sorted by relevance
/fs/xfs/libxfs/ |
D | xfs_dir2_sf.c | 951 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local 958 oldsize = (int)dp->i_d.di_size; in xfs_dir2_sf_removename() 959 ASSERT(oldsize >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_removename() 960 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename() 963 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_removename() 987 newsize = oldsize - entsize; in xfs_dir2_sf_removename() 991 if (byteoff + entsize < oldsize) in xfs_dir2_sf_removename() 993 oldsize - (byteoff + entsize)); in xfs_dir2_sf_removename() 1002 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1169 int oldsize; /* old inode size */ in xfs_dir2_sf_toino4() local [all …]
|
/fs/xfs/ |
D | xfs_iops.c | 811 xfs_off_t oldsize, newsize; in xfs_setattr_size() local 823 oldsize = inode->i_size; in xfs_setattr_size() 829 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size() 862 if (newsize > oldsize) { in xfs_setattr_size() 863 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size() 864 error = iomap_zero_range(inode, oldsize, newsize - oldsize, in xfs_setattr_size() 916 (newsize > ip->i_d.di_size && oldsize != ip->i_d.di_size)) { in xfs_setattr_size() 941 if (newsize != oldsize && in xfs_setattr_size() 963 if (newsize <= oldsize) { in xfs_setattr_size()
|
/fs/gfs2/ |
D | bmap.c | 1372 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument 1379 while (oldsize != newsize) { in gfs2_journaled_truncate() 1383 chunk = oldsize - newsize; in gfs2_journaled_truncate() 1387 offs = oldsize & ~PAGE_MASK; in gfs2_journaled_truncate() 1391 truncate_pagecache(inode, oldsize - chunk); in gfs2_journaled_truncate() 1392 oldsize -= chunk; in gfs2_journaled_truncate() 1413 u64 oldsize = inode->i_size; in trunc_start() local 1449 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start()
|
/fs/f2fs/ |
D | xattr.c | 724 int oldsize = ENTRY_SIZE(here); in __f2fs_setxattr() local 727 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in __f2fs_setxattr() 728 memset(last, 0, oldsize); in __f2fs_setxattr()
|
/fs/hugetlbfs/ |
D | inode.c | 787 loff_t oldsize = inode->i_size; in hugetlbfs_setattr() local 793 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in hugetlbfs_setattr() 794 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in hugetlbfs_setattr()
|
/fs/btrfs/ |
D | file.c | 1871 loff_t oldsize; in btrfs_file_write_iter() local 1944 oldsize = i_size_read(inode); in btrfs_file_write_iter() 1945 if (start_pos > oldsize) { in btrfs_file_write_iter() 1949 err = btrfs_cont_expand(inode, oldsize, end_pos); in btrfs_file_write_iter() 1954 if (start_pos > round_up(oldsize, fs_info->sectorsize)) in btrfs_file_write_iter() 2001 pagecache_isize_extended(inode, oldsize, in btrfs_file_write_iter()
|
D | inode.c | 4755 int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size) in btrfs_cont_expand() argument 4763 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand() 4775 err = btrfs_truncate_block(inode, oldsize, 0, 0); in btrfs_cont_expand() 4863 loff_t oldsize = i_size_read(inode); in btrfs_setsize() local 4874 if (newsize != oldsize) { in btrfs_setsize() 4881 if (newsize > oldsize) { in btrfs_setsize() 4890 ret = btrfs_cont_expand(inode, oldsize, newsize); in btrfs_setsize() 4904 pagecache_isize_extended(inode, oldsize, newsize); in btrfs_setsize() 4923 ret = btrfs_truncate(inode, newsize == oldsize); in btrfs_setsize()
|
D | ctree.h | 3054 int btrfs_cont_expand(struct inode *inode, loff_t oldsize, loff_t size);
|
/fs/fuse/ |
D | inode.c | 262 loff_t oldsize; in fuse_change_attributes() local 275 oldsize = inode->i_size; in fuse_change_attributes() 288 if (oldsize != attr->size) { in fuse_change_attributes()
|
D | dir.c | 1924 loff_t oldsize; in fuse_do_setattr() local 2039 oldsize = inode->i_size; in fuse_do_setattr() 2055 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
|
/fs/ext4/ |
D | inode.c | 5509 loff_t oldsize = inode->i_size; in ext4_setattr() local 5576 (oldsize > 0 ? oldsize - 1 : oldsize) >> in ext4_setattr() 5601 pagecache_isize_extended(inode, oldsize, in ext4_setattr() 5617 if (attr->ia_size <= oldsize) { in ext4_setattr()
|