bcachefs: Simplify bch2_xattr_emit() implementation
authorYouling Tang <tangyouling@kylinos.cn>
Thu, 15 Aug 2024 08:57:44 +0000 (16:57 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:49 +0000 (09:41 -0400)
commit42386fbaee1dd41f2c1ad41301a43454e808322c
tree7f8bf97da708d71e8efb35617e7cede570167c9b
parentd3f30f16294cc8e58ef14f934874ed7b3ec15b71
bcachefs: Simplify bch2_xattr_emit() implementation

Use helper functions to make code more readable.

Similar to commit a5488f29835c ("fs: simplify ->listxattr() implementation")

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/xattr.c