]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/erofs/xattr.c
fs: simplify ->listxattr() implementation
[thirdparty/linux.git] / fs / erofs / xattr.c
index 3de058f1742832f782b37491cca504d167cafb45..015462763bdd5fb05d887afb262ce9c948a1094e 100644 (file)
@@ -486,13 +486,9 @@ static int xattr_entrylist(struct xattr_iter *_it,
        unsigned int prefix_len;
        const char *prefix;
 
-       const struct xattr_handler *h =
-               erofs_xattr_handler(entry->e_name_index);
-
-       if (!h || (h->list && !h->list(it->dentry)))
+       prefix = erofs_xattr_prefix(entry->e_name_index, it->dentry);
+       if (!prefix)
                return 1;
-
-       prefix = xattr_prefix(h);
        prefix_len = strlen(prefix);
 
        if (!it->buffer) {