gfs2: Get rid of gfs2_ea_strlen
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 3 Aug 2018 09:57:52 +0000 (10:57 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 3 Aug 2018 12:20:02 +0000 (13:20 +0100)
commit21e2156f3c4b2ad8b780a6d02342ca0e028a8acd
treeb7287ec9b1c692543139c7d61fad7dd0a77601f0
parent3f30f929bb17877ebc1653c6f3ff41863f1ba524
gfs2: Get rid of gfs2_ea_strlen

Function gfs2_ea_strlen is only called from ea_list_i, so inline it
there.  Remove the duplicate switch statement and the creative use of
memcpy to set a null byte.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>
Reviewed-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/xattr.c