Home
last modified time | relevance | path

Searched refs:inode_newsize_ok (Results 1 – 24 of 24) sorted by relevance

/linux/fs/
H A Dattr.c172 int error = inode_newsize_ok(inode, attr->ia_size); in setattr_prepare()
229 * inode_newsize_ok - may this inode be truncated to a given size
233 * inode_newsize_ok must be called with i_rwsem held exclusively.
235 * inode_newsize_ok will check filesystem limits and ulimits to check that the
236 * new inode size is within limits. inode_newsize_ok will also send SIGXFSZ
239 * permissions to allow truncate (inode_newsize_ok does NOT check these
244 int inode_newsize_ok(const struct inode *inode, loff_t offset) in inode_newsize_ok() function
272 EXPORT_SYMBOL(inode_newsize_ok);
H A Dbuffer.c2481 err = inode_newsize_ok(inode, size); in generic_cont_expand_simple()
/linux/fs/minix/
H A Dfile.c37 error = inode_newsize_ok(inode, attr->ia_size); in minix_setattr()
/linux/fs/jfs/
H A Dfile.c117 rc = inode_newsize_ok(inode, iattr->ia_size); in jfs_setattr()
/linux/fs/ramfs/
H A Dfile-nommu.c76 ret = inode_newsize_ok(inode, newsize); in ramfs_nommu_expand_for_mapping()
/linux/fs/nfs/
H A Dnfs4file.c237 ret = inode_newsize_ok(inode, offset + len); in nfs42_fallocate()
H A Dinode.c730 error = inode_newsize_ok(inode, attr->ia_size); in nfs_setattr()
803 err = inode_newsize_ok(inode, offset); in nfs_vmtruncate()
/linux/fs/hpfs/
H A Dinode.c284 error = inode_newsize_ok(inode, attr->ia_size); in hpfs_setattr()
/linux/fs/affs/
H A Dinode.c242 error = inode_newsize_ok(inode, attr->ia_size); in affs_notify_change()
/linux/fs/ntfs3/
H A Dfile.c623 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate()
664 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate()
/linux/fs/exfat/
H A Dfile.c28 ret = inode_newsize_ok(inode, size); in exfat_cont_expand()
/linux/fs/afs/
H A Dinode.c864 ret = inode_newsize_ok(inode, attr->ia_size); in afs_setattr()
/linux/fs/ecryptfs/
H A Dinode.c843 * not be appropriate to call inode_newsize_ok() with inodes in ecryptfs_inode_newsize_ok()
846 return inode_newsize_ok(inode, lower_newsize); in ecryptfs_inode_newsize_ok()
/linux/fs/bcachefs/
H A Dfs-io.c771 ret = inode_newsize_ok(&inode->v, end); in bchfs_fallocate()
/linux/fs/hugetlbfs/
H A Dinode.c757 error = inode_newsize_ok(inode, offset + len); in hugetlbfs_fallocate()
/linux/fs/gfs2/
H A Dfile.c1391 ret = inode_newsize_ok(inode, offset + len); in gfs2_fallocate()
H A Dbmap.c2142 ret = inode_newsize_ok(inode, newsize); in gfs2_setattr_size()
/linux/fs/xfs/
H A Dxfs_file.c1164 return inode_newsize_ok(inode, *new_size); in xfs_falloc_newsize()
/linux/include/linux/
H A Dfs.h3755 extern int inode_newsize_ok(const struct inode *, loff_t offset);
/linux/fs/fuse/
H A Dfile.c2895 err = inode_newsize_ok(inode, offset + length); in fuse_file_fallocate()
/linux/fs/ceph/
H A Dfile.c2795 * - destination file size is not OK (inode_newsize_ok())
2819 if (inode_newsize_ok(dst_inode, endoff)) in is_file_size_ok()
/linux/fs/btrfs/
H A Dfile.c3125 ret = inode_newsize_ok(inode, offset + len); in btrfs_fallocate()
/linux/mm/
H A Dshmem.c3761 error = inode_newsize_ok(inode, offset + len); in shmem_fallocate()
/linux/fs/smb/client/
H A Dsmb2ops.c3539 rc = inode_newsize_ok(inode, off + len); in smb3_simple_falloc()