Lines Matching full:context

191 	struct xfs_attr_list_context *context,  in __xfs_xattr_put_listent()  argument
200 if (context->count < 0 || context->seen_enough) in __xfs_xattr_put_listent()
203 if (!context->buffer) in __xfs_xattr_put_listent()
206 arraytop = context->count + prefix_len + namelen + 1; in __xfs_xattr_put_listent()
207 if (arraytop > context->firstu) { in __xfs_xattr_put_listent()
208 context->count = -1; /* insufficient space */ in __xfs_xattr_put_listent()
209 context->seen_enough = 1; in __xfs_xattr_put_listent()
212 offset = context->buffer + context->count; in __xfs_xattr_put_listent()
220 context->count += prefix_len + namelen + 1; in __xfs_xattr_put_listent()
226 struct xfs_attr_list_context *context, in xfs_xattr_put_listent() argument
235 ASSERT(context->count >= 0); in xfs_xattr_put_listent()
243 context, XATTR_SYSTEM_PREFIX, in xfs_xattr_put_listent()
251 context, XATTR_SYSTEM_PREFIX, in xfs_xattr_put_listent()
275 __xfs_xattr_put_listent(context, prefix, prefix_len, name, in xfs_xattr_put_listent()
286 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.resynch = 1; in xfs_vn_listxattr()
296 context.buffer = size ? data : NULL; in xfs_vn_listxattr()
297 context.bufsize = size; in xfs_vn_listxattr()
298 context.firstu = context.bufsize; in xfs_vn_listxattr()
299 context.put_listent = xfs_xattr_put_listent; in xfs_vn_listxattr()
301 error = xfs_attr_list(&context); in xfs_vn_listxattr()
304 if (context.count < 0) in xfs_vn_listxattr()
307 return context.count; in xfs_vn_listxattr()