fs: split off setxattr_copy and do_setxattr function from setxattr
authorStefan Roesch <shr@fb.com>
Thu, 23 Dec 2021 23:51:20 +0000 (15:51 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Dec 2021 14:42:31 +0000 (07:42 -0700)
commit3747b353c2e7b7528b66d7b817c0f576d0570323
tree5d955991529b78fffd18ff1640f81b142a8ffd0b
parent1edd3dc1dd197d624d56df001b7174dd704aa7ef
fs: split off setxattr_copy and do_setxattr function from setxattr

This splits of the setup part of the function
setxattr in its own dedicated function called
setxattr_copy. In addition it also exposes a
new function called do_setxattr for making the
setxattr call.

This makes it possible to call these two functions
from io_uring in the processing of an xattr request.

Signed-off-by: Stefan Roesch <shr@fb.com>
Link: https://lore.kernel.org/r/20211223235123.4092764-3-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/internal.h
fs/xattr.c