mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 03:06:46 +07:00
9548906b2b
Since everybody sets kstrdup()ed constant string to "struct xattr"->name but nobody modifies "struct xattr"->name , we can omit kstrdup() and its failure checking by constifying ->name member of "struct xattr". Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reviewed-by: Joel Becker <jlbec@evilplan.org> [ocfs2] Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Reviewed-by: Paul Moore <paul@paul-moore.com> Tested-by: Paul Moore <paul@paul-moore.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
25 lines
470 B
C
25 lines
470 B
C
/*
|
|
File: linux/reiserfs_xattr.h
|
|
*/
|
|
|
|
#ifndef _LINUX_REISERFS_XATTR_H
|
|
#define _LINUX_REISERFS_XATTR_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/* Magic value in header */
|
|
#define REISERFS_XATTR_MAGIC 0x52465841 /* "RFXA" */
|
|
|
|
struct reiserfs_xattr_header {
|
|
__le32 h_magic; /* magic number for identification */
|
|
__le32 h_hash; /* hash of the value */
|
|
};
|
|
|
|
struct reiserfs_security_handle {
|
|
const char *name;
|
|
void *value;
|
|
size_t length;
|
|
};
|
|
|
|
#endif /* _LINUX_REISERFS_XATTR_H */
|