Lines Matching refs:iap
100 decode_sattr3(__be32 *p, struct iattr *iap, struct user_namespace *userns) in decode_sattr3() argument
104 iap->ia_valid = 0; in decode_sattr3()
107 iap->ia_valid |= ATTR_MODE; in decode_sattr3()
108 iap->ia_mode = ntohl(*p++); in decode_sattr3()
111 iap->ia_uid = make_kuid(userns, ntohl(*p++)); in decode_sattr3()
112 if (uid_valid(iap->ia_uid)) in decode_sattr3()
113 iap->ia_valid |= ATTR_UID; in decode_sattr3()
116 iap->ia_gid = make_kgid(userns, ntohl(*p++)); in decode_sattr3()
117 if (gid_valid(iap->ia_gid)) in decode_sattr3()
118 iap->ia_valid |= ATTR_GID; in decode_sattr3()
123 iap->ia_valid |= ATTR_SIZE; in decode_sattr3()
125 iap->ia_size = min_t(u64, newsize, NFS_OFFSET_MAX); in decode_sattr3()
128 iap->ia_valid |= ATTR_ATIME; in decode_sattr3()
130 iap->ia_valid |= ATTR_ATIME | ATTR_ATIME_SET; in decode_sattr3()
131 iap->ia_atime.tv_sec = ntohl(*p++); in decode_sattr3()
132 iap->ia_atime.tv_nsec = ntohl(*p++); in decode_sattr3()
135 iap->ia_valid |= ATTR_MTIME; in decode_sattr3()
137 iap->ia_valid |= ATTR_MTIME | ATTR_MTIME_SET; in decode_sattr3()
138 iap->ia_mtime.tv_sec = ntohl(*p++); in decode_sattr3()
139 iap->ia_mtime.tv_nsec = ntohl(*p++); in decode_sattr3()