]> Git Repo - linux.git/commit
xattr: Constify ->name member of "struct xattr".
authorTetsuo Handa <[email protected]>
Wed, 24 Jul 2013 20:44:02 +0000 (05:44 +0900)
committerJames Morris <[email protected]>
Thu, 25 Jul 2013 09:30:03 +0000 (19:30 +1000)
commit9548906b2bb7ff09e12c013a55d669bef2c8e121
treeb75ba2bc69d82c1040cac0ea9113a17b39e82b93
parentbe0306bcc3a0b0725b0f99b06d56a29a6d906b7c
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".

Signed-off-by: Tetsuo Handa <[email protected]>
Reviewed-by: Joel Becker <[email protected]> [ocfs2]
Acked-by: Serge E. Hallyn <[email protected]>
Acked-by: Casey Schaufler <[email protected]>
Acked-by: Mimi Zohar <[email protected]>
Reviewed-by: Paul Moore <[email protected]>
Tested-by: Paul Moore <[email protected]>
Acked-by: Eric Paris <[email protected]>
Signed-off-by: James Morris <[email protected]>
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
This page took 0.077022 seconds and 4 git commands to generate.