• Home
  • Raw
  • Download

Lines Matching refs:context

227 xfs_xattr_put_listent(struct xfs_attr_list_context *context, int flags,  in xfs_xattr_put_listent()  argument
234 ASSERT(context->count >= 0); in xfs_xattr_put_listent()
243 arraytop = context->count + prefix_len + namelen + 1; in xfs_xattr_put_listent()
244 if (arraytop > context->firstu) { in xfs_xattr_put_listent()
245 context->count = -1; /* insufficient space */ in xfs_xattr_put_listent()
248 offset = (char *)context->alist + context->count; in xfs_xattr_put_listent()
254 context->count += prefix_len + namelen + 1; in xfs_xattr_put_listent()
259 xfs_xattr_put_listent_sizes(struct xfs_attr_list_context *context, int flags, in xfs_xattr_put_listent_sizes() argument
262 context->count += xfs_xattr_prefix_len(flags) + namelen + 1; in xfs_xattr_put_listent_sizes()
285 struct xfs_attr_list_context context; in xfs_vn_listxattr() local
293 memset(&context, 0, sizeof(context)); in xfs_vn_listxattr()
294 context.dp = XFS_I(inode); in xfs_vn_listxattr()
295 context.cursor = &cursor; in xfs_vn_listxattr()
296 context.resynch = 1; in xfs_vn_listxattr()
297 context.alist = data; in xfs_vn_listxattr()
298 context.bufsize = size; in xfs_vn_listxattr()
299 context.firstu = context.bufsize; in xfs_vn_listxattr()
302 context.put_listent = xfs_xattr_put_listent; in xfs_vn_listxattr()
304 context.put_listent = xfs_xattr_put_listent_sizes; in xfs_vn_listxattr()
306 xfs_attr_list_int(&context); in xfs_vn_listxattr()
307 if (context.count < 0) in xfs_vn_listxattr()
316 data, size, &context.count); in xfs_vn_listxattr()
324 data, size, &context.count); in xfs_vn_listxattr()
329 return context.count; in xfs_vn_listxattr()