diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-01-25 15:11:39 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-02-16 07:59:46 +0300 |
commit | eecfa42716e63a99c4d1053b137aa10a3b94c0da (patch) | |
tree | f6da33adeaa91de44d8d1ae1fe6039cfa94e8ff5 /fs | |
parent | 812a95977fd2f0d1f220c716a98a7f22e22f488d (diff) | |
download | linux-eecfa42716e63a99c4d1053b137aa10a3b94c0da.tar.xz |
f2fs: use xattr_prefix to wrap up
Let's use xattr_prefix instead of open code.
No logic changes.
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |