Commit 0a50e5be authored by Jens Axboe's avatar Jens Axboe Committed by Yongqiang Liu
Browse files

fs: provide locked helper variant of close_fd_get_file()

mainline inclusion
from mainline-v5.12-rc1
commit 53dec2ea
category: bugfix
bugzilla: 188963, https://gitee.com/src-openeuler/kernel/issues/I7GUAN


CVE: NA

--------------------------------

Assumes current->files->file_lock is already held on invocation. Helps
the caller check the file before removing the fd, if it needs to.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Conflicts:
	fs/file.c
	fs/internal.h

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
Reviewed-by: default avatarYang Erkun <yangerkun@huawei.com>
Reviewed-by: default avatarWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 80ea3691
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment