Lines Matching refs:iattr

717 static int orangefs_setattr_size(struct inode *inode, struct iattr *iattr)  in orangefs_setattr_size()  argument
730 iattr->ia_size); in orangefs_setattr_size()
744 truncate_pagecache(inode, iattr->ia_size); in orangefs_setattr_size()
745 i_size_write(inode, iattr->ia_size); in orangefs_setattr_size()
746 if (iattr->ia_size > orig_size) in orangefs_setattr_size()
747 pagecache_isize_extended(inode, orig_size, iattr->ia_size); in orangefs_setattr_size()
754 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
772 iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; in orangefs_setattr_size()
777 int __orangefs_setattr(struct inode *inode, struct iattr *iattr) in __orangefs_setattr() argument
781 if (iattr->ia_valid & ATTR_MODE) { in __orangefs_setattr()
782 if (iattr->ia_mode & (S_ISVTX)) { in __orangefs_setattr()
789 iattr->ia_mode -= S_ISVTX; in __orangefs_setattr()
797 if (iattr->ia_mode & (S_ISUID)) { in __orangefs_setattr()
805 if (iattr->ia_valid & ATTR_SIZE) { in __orangefs_setattr()
806 ret = orangefs_setattr_size(inode, iattr); in __orangefs_setattr()
816 ORANGEFS_I(inode)->attr_valid = iattr->ia_valid; in __orangefs_setattr()
823 ORANGEFS_I(inode)->attr_valid = iattr->ia_valid; in __orangefs_setattr()
827 setattr_copy(&init_user_ns, inode, iattr); in __orangefs_setattr()
831 if (iattr->ia_valid & ATTR_MODE) in __orangefs_setattr()
844 struct iattr *iattr) in orangefs_setattr() argument
849 ret = setattr_prepare(&init_user_ns, dentry, iattr); in orangefs_setattr()
852 ret = __orangefs_setattr(d_inode(dentry), iattr); in orangefs_setattr()
907 struct iattr iattr; in orangefs_update_time() local
911 memset(&iattr, 0, sizeof iattr); in orangefs_update_time()
913 iattr.ia_valid |= ATTR_ATIME; in orangefs_update_time()
915 iattr.ia_valid |= ATTR_CTIME; in orangefs_update_time()
917 iattr.ia_valid |= ATTR_MTIME; in orangefs_update_time()
918 return __orangefs_setattr(inode, &iattr); in orangefs_update_time()