diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2019-01-25 13:11:39 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-02-16 05:59:46 +0100 |
commit | eecfa42716e63a99c4d1053b137aa10a3b94c0da (patch) | |
tree | f6da33adeaa91de44d8d1ae1fe6039cfa94e8ff5 /fs/f2fs/xattr.c | |
parent | f2fs: sync filesystem after roll-forward recovery (diff) | |
download | linux-eecfa42716e63a99c4d1053b137aa10a3b94c0da.tar.xz linux-eecfa42716e63a99c4d1053b137aa10a3b94c0da.zip |
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/f2fs/xattr.c')
-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) { |