Lines Matching refs:stat
167 struct kstat *stat) in encode_fattr3() argument
171 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in encode_fattr3()
172 *p++ = htonl((u32) (stat->mode & S_IALLUGO)); in encode_fattr3()
173 *p++ = htonl((u32) stat->nlink); in encode_fattr3()
174 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr3()
175 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr3()
176 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) { in encode_fattr3()
179 p = xdr_encode_hyper(p, (u64) stat->size); in encode_fattr3()
181 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in encode_fattr3()
182 *p++ = htonl((u32) MAJOR(stat->rdev)); in encode_fattr3()
183 *p++ = htonl((u32) MINOR(stat->rdev)); in encode_fattr3()
185 p = xdr_encode_hyper(p, stat->ino); in encode_fattr3()
186 ts = timespec64_to_timespec(stat->atime); in encode_fattr3()
188 ts = timespec64_to_timespec(stat->mtime); in encode_fattr3()
190 ts = timespec64_to_timespec(stat->ctime); in encode_fattr3()
215 struct kstat stat; in encode_post_op_attr() local
217 err = fh_getattr(fhp, &stat); in encode_post_op_attr()
220 lease_get_mtime(d_inode(dentry), &stat.mtime); in encode_post_op_attr()
221 return encode_fattr3(rqstp, p, fhp, &stat); in encode_post_op_attr()
265 struct kstat stat; in fill_pre_wcc() local
272 err = fh_getattr(fhp, &stat); in fill_pre_wcc()
275 stat.mtime = inode->i_mtime; in fill_pre_wcc()
276 stat.ctime = inode->i_ctime; in fill_pre_wcc()
277 stat.size = inode->i_size; in fill_pre_wcc()
280 fhp->fh_pre_mtime = timespec64_to_timespec(stat.mtime); in fill_pre_wcc()
281 fhp->fh_pre_ctime = timespec64_to_timespec(stat.ctime); in fill_pre_wcc()
282 fhp->fh_pre_size = stat.size; in fill_pre_wcc()
283 fhp->fh_pre_change = nfsd4_change_attribute(&stat, inode); in fill_pre_wcc()
660 &resp->stat.mtime); in nfs3svc_encode_attrstat()
661 p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); in nfs3svc_encode_attrstat()