forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file: Replace ksys_close with close_fd
Now that ksys_close is exactly identical to close_fd replace the one caller of ksys_close with close_fd. [1] https://lkml.kernel.org/r/[email protected] Suggested-by: Christoph Hellwig <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Eric W. Biederman <[email protected]>
- Loading branch information
Showing
2 changed files
with
3 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
* Copyright 2008 Ian Kent <[email protected]> | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/miscdevice.h> | ||
#include <linux/compat.h> | ||
#include <linux/syscalls.h> | ||
#include <linux/fdtable.h> | ||
#include <linux/magic.h> | ||
#include <linux/nospec.h> | ||
|
||
|
@@ -289,7 +290,7 @@ static int autofs_dev_ioctl_closemount(struct file *fp, | |
struct autofs_sb_info *sbi, | ||
struct autofs_dev_ioctl *param) | ||
{ | ||
return ksys_close(param->ioctlfd); | ||
return close_fd(param->ioctlfd); | ||
} | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters