All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] f2fs: use xattr_prefix to wrap up
@ 2019-01-25 12:11 Gao Xiang
  2019-01-26  2:49 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Gao Xiang @ 2019-01-25 12:11 UTC (permalink / raw)
  To: Jaegeuk Kim, Chao Yu; +Cc: miaoxie, linux-f2fs-devel

Let's use xattr_prefix instead of open code.
No logic changes.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
---
 fs/f2fs/xattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
-- 
2.14.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] f2fs: use xattr_prefix to wrap up
  2019-01-25 12:11 [PATCH] f2fs: use xattr_prefix to wrap up Gao Xiang
@ 2019-01-26  2:49 ` Chao Yu
  0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2019-01-26  2:49 UTC (permalink / raw)
  To: Gao Xiang, Jaegeuk Kim; +Cc: miaoxie, linux-f2fs-devel

On 2019/1/25 20:11, Gao Xiang wrote:
> 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>

Thanks,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-26  2:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-25 12:11 [PATCH] f2fs: use xattr_prefix to wrap up Gao Xiang
2019-01-26  2:49 ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.