From: Gao Xiang Date: Fri, 25 Jan 2019 12:11:39 +0000 (+0800) Subject: f2fs: use xattr_prefix to wrap up X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=eecfa42716e63a99c4d1053b137aa10a3b94c0da;p=openwrt%2Fstaging%2Fblogic.git f2fs: use xattr_prefix to wrap up Let's use xattr_prefix instead of open code. No logic changes. Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 18d5ffbc5e8c..fa620d31ea5f 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -538,7 +538,7 @@ ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) if (!handler || (handler->list && !handler->list(dentry))) continue; - prefix = handler->prefix ?: handler->name; + prefix = xattr_prefix(handler); prefix_len = strlen(prefix); size = prefix_len + entry->e_name_len + 1; if (buffer) {