xattr: Constify ->name member of "struct xattr".
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 24 Jul 2013 20:44:02 +0000 (05:44 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:46:05 +0000 (11:46 +0900)
commitda2346cfe33171b641e48b30fd98959d9148a5c6
treefafc25108a11434c5f6488f7d8c805967d73d6ef
parentc3390471d8115d440d8aae13a47656695f676c9b
xattr: Constify ->name member of "struct xattr".

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".

Change-Id: I6cb5cd7f29c01956dd0d1579af81a518a5936071
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>
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
fs/ocfs2/xattr.h
include/linux/security.h
include/linux/xattr.h
include/uapi/linux/reiserfs_xattr.h
security/capability.c
security/integrity/evm/evm_main.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c