Lines Matching defs:xf
108 * in to the provided buffer (xf->buf).
111 zpl_xattr_filldir(xattr_filldir_t *xf, const char *name, int name_len)
116 perm = zpl_xattr_permission(xf, name, name_len);
122 if (xf->buf) {
123 if (xf->offset + XATTR_USER_PREFIX_LEN + 1 > xf->size)
126 memcpy(xf->buf + xf->offset, XATTR_USER_PREFIX,
128 xf->buf[xf->offset + XATTR_USER_PREFIX_LEN] = '\0';
131 xf->offset += XATTR_USER_PREFIX_LEN;
134 /* When xf->buf is NULL only calculate the required size. */
135 if (xf->buf) {
136 if (xf->offset + name_len + 1 > xf->size)
139 memcpy(xf->buf + xf->offset, name, name_len);
140 xf->buf[xf->offset + name_len] = '\0';
143 xf->offset += (name_len + 1);
153 zpl_xattr_readdir(struct inode *dxip, xattr_filldir_t *xf)
168 error = zpl_xattr_filldir(xf, zap->za_name,
186 zpl_xattr_list_dir(xattr_filldir_t *xf, cred_t *cr)
188 struct inode *ip = xf->dentry->d_inode;
204 error = zpl_xattr_readdir(dxip, xf);
211 zpl_xattr_list_sa(xattr_filldir_t *xf)
213 znode_t *zp = ITOZ(xf->dentry->d_inode);
230 error = zpl_xattr_filldir(xf, nvpair_name(nvp),
244 xattr_filldir_t xf = { buffer_size, 0, buffer, dentry };
256 error = zpl_xattr_list_sa(&xf);
261 error = zpl_xattr_list_dir(&xf, cr);
265 error = xf.offset;
1427 zpl_xattr_permission(xattr_filldir_t *xf, const char *name, int name_len)
1430 struct dentry *d __maybe_unused = xf->dentry;