Lines Matching refs:stat
130 struct kstat *stat) in encode_fattr() argument
138 type = (stat->mode & S_IFMT); in encode_fattr()
141 *p++ = htonl((u32) stat->mode); in encode_fattr()
142 *p++ = htonl((u32) stat->nlink); in encode_fattr()
143 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr()
144 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr()
146 if (S_ISLNK(type) && stat->size > NFS_MAXPATHLEN) { in encode_fattr()
149 *p++ = htonl((u32) stat->size); in encode_fattr()
151 *p++ = htonl((u32) stat->blksize); in encode_fattr()
153 *p++ = htonl(new_encode_dev(stat->rdev)); in encode_fattr()
156 *p++ = htonl((u32) stat->blocks); in encode_fattr()
160 *p++ = htonl(new_encode_dev(stat->dev)); in encode_fattr()
173 *p++ = htonl((u32) stat->ino); in encode_fattr()
174 *p++ = htonl((u32) stat->atime.tv_sec); in encode_fattr()
175 *p++ = htonl(stat->atime.tv_nsec ? stat->atime.tv_nsec / 1000 : 0); in encode_fattr()
176 time = stat->mtime; in encode_fattr()
180 *p++ = htonl((u32) stat->ctime.tv_sec); in encode_fattr()
181 *p++ = htonl(stat->ctime.tv_nsec ? stat->ctime.tv_nsec / 1000 : 0); in encode_fattr()
187 …32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat) in nfs2svc_encode_fattr() argument
189 return encode_fattr(rqstp, p, fhp, stat); in nfs2svc_encode_fattr()
437 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat()
447 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_diropres()
473 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_readres()
506 struct kstatfs *stat = &resp->stats; in nfssvc_encode_statfsres() local
509 *p++ = htonl(stat->f_bsize); in nfssvc_encode_statfsres()
510 *p++ = htonl(stat->f_blocks); in nfssvc_encode_statfsres()
511 *p++ = htonl(stat->f_bfree); in nfssvc_encode_statfsres()
512 *p++ = htonl(stat->f_bavail); in nfssvc_encode_statfsres()