mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
54275d8496
This field only ever contains XATTR_{CREATE,REPLACE}, and it only goes as deep as xfs_attr_set. Remove the field from the structure and replace it with an enum specifying exactly what kind of change we want to make to the xattr structure. Upsert is the name that we'll give to the flags==0 operation, because we're either updating an existing value or inserting it, and the caller doesn't care. Note: The "UPSERTR" name created here is to make userspace porting easier. It will be removed in the next patch. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
15 lines
355 B
C
15 lines
355 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
|
* All Rights Reserved.
|
|
*/
|
|
#ifndef __XFS_XATTR_H__
|
|
#define __XFS_XATTR_H__
|
|
|
|
enum xfs_attr_update;
|
|
int xfs_attr_change(struct xfs_da_args *args, enum xfs_attr_update op);
|
|
|
|
extern const struct xattr_handler * const xfs_xattr_handlers[];
|
|
|
|
#endif /* __XFS_XATTR_H__ */
|