Lines Matching refs:flags
58 size_t size, int flags, int xflags) in xfs_xattr_set() argument
66 if (flags & XATTR_CREATE) in xfs_xattr_set()
68 if (flags & XATTR_REPLACE) in xfs_xattr_set()
79 .flags = 0, /* no flags implies user namespace */
86 .flags = ATTR_ROOT,
93 .flags = ATTR_SECURE,
109 static unsigned int xfs_xattr_prefix_len(int flags) in xfs_xattr_prefix_len() argument
111 if (flags & XFS_ATTR_SECURE) in xfs_xattr_prefix_len()
113 else if (flags & XFS_ATTR_ROOT) in xfs_xattr_prefix_len()
119 static const char *xfs_xattr_prefix(int flags) in xfs_xattr_prefix() argument
121 if (flags & XFS_ATTR_SECURE) in xfs_xattr_prefix()
123 else if (flags & XFS_ATTR_ROOT) in xfs_xattr_prefix()
132 int flags, in xfs_xattr_put_listent() argument
138 unsigned int prefix_len = xfs_xattr_prefix_len(flags); in xfs_xattr_put_listent()
148 if ((flags & XFS_ATTR_ROOT) && !capable(CAP_SYS_ADMIN)) in xfs_xattr_put_listent()
157 strncpy(offset, xfs_xattr_prefix(flags), prefix_len); in xfs_xattr_put_listent()
169 int flags, in xfs_xattr_put_listent_sizes() argument
175 context->count += xfs_xattr_prefix_len(flags) + namelen + 1; in xfs_xattr_put_listent_sizes()