hugetlbfs: cleanup mknod and tmpfile
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 24 Sep 2022 04:59:59 +0000 (06:59 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 04:59:59 +0000 (06:59 +0200)
commit19ee5345f23423d5bbd84a59112433592d584b4c
tree98afe7469f11a7a7b8a8ecc807f65d16f352cb18
parent22873deac9e7b273bbf17eee515c8170510d861a
hugetlbfs: cleanup mknod and tmpfile

Duplicate the few lines that are shared between hugetlbfs_mknod() and
hugetlbfs_tmpfile().

This is a prerequisite for sanely changing the signature of ->tmpfile().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/hugetlbfs/inode.c