android_kernel_xiaomi_sm8450/fs/vboxsf
Hans de Goede 971703fc19 vboxsf: Honor excl flag to the dir-inode create op
commit cc3ddee97cff034cea4d095de4a484c92a219bf5 upstream

Honor the excl flag to the dir-inode create op, instead of behaving
as if it is always set.

Note the old behavior still worked most of the time since a non-exclusive
open only calls the create op, if there is a race and the file is created
between the dentry lookup and the calling of the create call.

While at it change the type of the is_dir parameter to the
vboxsf_dir_create() helper from an int to a bool, to be consistent with
the use of bool for the excl parameter.

Fixes: 0fd1695766 ("fs: Add VirtualBox guest shared folder (vboxsf) support")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-15 14:00:26 +02:00
..
dir.c vboxsf: Honor excl flag to the dir-inode create op 2021-08-15 14:00:26 +02:00
file.c
Kconfig
Makefile
shfl_hostintf.h
super.c block-5.10-2020-10-12 2020-10-13 12:12:44 -07:00
utils.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
vboxsf_wrappers.c
vfsmod.h