Lines Matching refs:entry
5726 /* if there's more than one entry, ignore the rest */
7466 * nfs4_decode_dirent - Decode a single NFSv4 directory entry stored in
7468 * @xdr: XDR stream where entry resides
7469 * @entry: buffer to fill in with entry data
7470 * @plus: boolean indicating whether this should be a readdirplus entry
7479 int nfs4_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry,
7495 entry->eof = 1;
7503 entry->len = be32_to_cpup(p);
7505 p = xdr_inline_decode(xdr, entry->len);
7508 entry->name = (const char *) p;
7515 entry->ino = 1;
7516 entry->fattr->valid = 0;
7524 if (decode_getfattr_attrs(xdr, bitmap, entry->fattr, entry->fh,
7525 NULL, entry->server) < 0)
7527 if (entry->fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID)
7528 entry->ino = entry->fattr->mounted_on_fileid;
7529 else if (entry->fattr->valid & NFS_ATTR_FATTR_FILEID)
7530 entry->ino = entry->fattr->fileid;
7532 entry->d_type = DT_UNKNOWN;
7533 if (entry->fattr->valid & NFS_ATTR_FATTR_TYPE)
7534 entry->d_type = nfs_umode_to_dtype(entry->fattr->mode);
7536 entry->cookie = new_cookie;