aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_attr.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2020-02-26 17:30:35 -0800
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2020-03-02 20:55:53 -0800
commitd49db18b247d8e7e16f2178cd713f4621d1d7ade (patch)
tree98a42ea01c2ce331e14963ee257c7a6787195c78 /fs/xfs/libxfs/xfs_attr.h
parentxfs: remove ATTR_KERNOVAL (diff)
downloadlinux-d49db18b247d8e7e16f2178cd713f4621d1d7ade.tar.gz
linux-d49db18b247d8e7e16f2178cd713f4621d1d7ade.tar.bz2
linux-d49db18b247d8e7e16f2178cd713f4621d1d7ade.zip
xfs: remove ATTR_ALLOC and XFS_DA_OP_ALLOCVAL
Use a NULL args->value as the indicator to lazily allocate a buffer instead, and let the caller always free args->value instead of duplicating the cleanup. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_attr.h')
-rw-r--r--fs/xfs/libxfs/xfs_attr.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.h b/fs/xfs/libxfs/xfs_attr.h
index fe064cd81747..a6de050675c9 100644
--- a/fs/xfs/libxfs/xfs_attr.h
+++ b/fs/xfs/libxfs/xfs_attr.h
@@ -35,10 +35,8 @@ struct xfs_attr_list_context;
#define ATTR_KERNOTIME 0x1000 /* [kernel] don't update inode timestamps */
-#define ATTR_ALLOC 0x8000 /* [kernel] allocate xattr buffer on demand */
-
#define ATTR_KERNEL_FLAGS \
- (ATTR_KERNOTIME | ATTR_ALLOC)
+ (ATTR_KERNOTIME)
#define XFS_ATTR_FLAGS \
{ ATTR_DONTFOLLOW, "DONTFOLLOW" }, \
@@ -47,8 +45,7 @@ struct xfs_attr_list_context;
{ ATTR_SECURE, "SECURE" }, \
{ ATTR_CREATE, "CREATE" }, \
{ ATTR_REPLACE, "REPLACE" }, \
- { ATTR_KERNOTIME, "KERNOTIME" }, \
- { ATTR_ALLOC, "ALLOC" }
+ { ATTR_KERNOTIME, "KERNOTIME" }
/*
* The maximum size (into the kernel or returned from the kernel) of an