projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
812a959
)
f2fs: use xattr_prefix to wrap up
author
Gao Xiang
<gaoxiang25@huawei.com>
Fri, 25 Jan 2019 12:11:39 +0000
(20:11 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Sat, 16 Feb 2019 04:59:46 +0000
(20:59 -0800)
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>
fs/f2fs/xattr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/xattr.c
b/fs/f2fs/xattr.c
index 18d5ffbc5e8c63a7e9f8370c5dc82deb0f8d7ca8..fa620d31ea5f54d0f7a0846ba3cd2d9009774353 100644
(file)
--- 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) {