Lines Matching refs:stat
339 const struct svc_fh *fhp, const struct kstat *stat) in svcxdr_encode_fattr3() argument
349 *p++ = cpu_to_be32(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in svcxdr_encode_fattr3()
350 *p++ = cpu_to_be32((u32)(stat->mode & S_IALLUGO)); in svcxdr_encode_fattr3()
351 *p++ = cpu_to_be32((u32)stat->nlink); in svcxdr_encode_fattr3()
352 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid)); in svcxdr_encode_fattr3()
353 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid)); in svcxdr_encode_fattr3()
354 if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) in svcxdr_encode_fattr3()
357 p = xdr_encode_hyper(p, (u64)stat->size); in svcxdr_encode_fattr3()
360 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in svcxdr_encode_fattr3()
363 *p++ = cpu_to_be32((u32)MAJOR(stat->rdev)); in svcxdr_encode_fattr3()
364 *p++ = cpu_to_be32((u32)MINOR(stat->rdev)); in svcxdr_encode_fattr3()
380 p = xdr_encode_hyper(p, stat->ino); in svcxdr_encode_fattr3()
382 p = encode_nfstime3(p, &stat->atime); in svcxdr_encode_fattr3()
383 p = encode_nfstime3(p, &stat->mtime); in svcxdr_encode_fattr3()
384 encode_nfstime3(p, &stat->ctime); in svcxdr_encode_fattr3()
433 struct kstat stat; in svcxdr_encode_post_op_attr() local
442 if (fh_getattr(fhp, &stat) != nfs_ok) in svcxdr_encode_post_op_attr()
447 lease_get_mtime(d_inode(dentry), &stat.mtime); in svcxdr_encode_post_op_attr()
448 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &stat)) in svcxdr_encode_post_op_attr()
749 lease_get_mtime(d_inode(resp->fh.fh_dentry), &resp->stat.mtime); in nfs3svc_encode_getattrres()
750 if (!svcxdr_encode_fattr3(rqstp, xdr, &resp->fh, &resp->stat)) in nfs3svc_encode_getattrres()