mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
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]>