xfs_xattr.c (a9c8c69b496117912162cdc38dcae953a07b87f7) xfs_xattr.c (17e1dd83ea21dc7aaf44590e5947338351b99bd0)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2008 Christoph Hellwig.
4 * Portions Copyright (C) 2000-2008 Silicon Graphics, Inc.
5 */
6
7#include "xfs.h"
8#include "xfs_shared.h"

--- 220 unchanged lines hidden (view full) ---

229 context.dp = XFS_I(inode);
230 context.cursor = &cursor;
231 context.resynch = 1;
232 context.buffer = size ? data : NULL;
233 context.bufsize = size;
234 context.firstu = context.bufsize;
235 context.put_listent = xfs_xattr_put_listent;
236
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2008 Christoph Hellwig.
4 * Portions Copyright (C) 2000-2008 Silicon Graphics, Inc.
5 */
6
7#include "xfs.h"
8#include "xfs_shared.h"

--- 220 unchanged lines hidden (view full) ---

229 context.dp = XFS_I(inode);
230 context.cursor = &cursor;
231 context.resynch = 1;
232 context.buffer = size ? data : NULL;
233 context.bufsize = size;
234 context.firstu = context.bufsize;
235 context.put_listent = xfs_xattr_put_listent;
236
237 error = xfs_attr_list_int(&context);
237 error = xfs_attr_list(&context);
238 if (error)
239 return error;
240 if (context.count < 0)
241 return -ERANGE;
242
243 return context.count;
244}
238 if (error)
239 return error;
240 if (context.count < 0)
241 return -ERANGE;
242
243 return context.count;
244}