btrfs: factor out common part of btrfs_{mknod,create,mkdir}()
authorOmar Sandoval <osandov@fb.com>
Tue, 15 Mar 2022 01:12:33 +0000 (18:12 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:08 +0000 (17:03 +0200)
commit5f465bf1f15aec52bed8d3e17738b303ae8e1a3c
treeee8836c83ef9096a61be8359828b55ab40f95873
parenta1fd0c35ffe349a7bbca27dae362932895ee8c4d
btrfs: factor out common part of btrfs_{mknod,create,mkdir}()

btrfs_{mknod,create,mkdir}() are now identical other than the inode
initialization and some inconsequential function call order differences.
Factor out the common code to reduce code duplication.

Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c