]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/internal.h
fs: split off setxattr_copy and do_setxattr function from setxattr
authorStefan Roesch <shr@fb.com>
Mon, 25 Apr 2022 00:10:46 +0000 (18:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:18:37 +0000 (18:18 -0600)
commit1a91794ce8481a293c5ef432feb440aee1455619
tree4698eccfa4c568c18ee2d8d94d67cb866015d1ea
parent155bc9505dbd6613585abbf0be6466f1c21536c4
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>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20220323154420.3301504-2-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/internal.h
fs/xattr.c