* [PATCH] fcntl: trim arguments
[not found] <CGME20250922113152epcas5p2d3aa052da211b541e0182c94b1ba510f@epcas5p2.samsung.com>
@ 2025-09-22 11:30 ` Kanchan Joshi
2025-09-22 12:16 ` Jan Kara
2025-09-23 10:43 ` Christian Brauner
0 siblings, 2 replies; 3+ messages in thread
From: Kanchan Joshi @ 2025-09-22 11:30 UTC (permalink / raw)
To: linux-fsdevel; +Cc: brauner, jack, Kanchan Joshi
Remove superfluous argument from fcntl_{get/set}_rw_hint.
No functional change.
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
---
fs/fcntl.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/fs/fcntl.c b/fs/fcntl.c
index 5598e4d57422..72f8433d9109 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -355,8 +355,7 @@ static bool rw_hint_valid(u64 hint)
}
}
-static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
- unsigned long arg)
+static long fcntl_get_rw_hint(struct file *file, unsigned long arg)
{
struct inode *inode = file_inode(file);
u64 __user *argp = (u64 __user *)arg;
@@ -367,8 +366,7 @@ static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
return 0;
}
-static long fcntl_set_rw_hint(struct file *file, unsigned int cmd,
- unsigned long arg)
+static long fcntl_set_rw_hint(struct file *file, unsigned long arg)
{
struct inode *inode = file_inode(file);
u64 __user *argp = (u64 __user *)arg;
@@ -547,10 +545,10 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
err = memfd_fcntl(filp, cmd, argi);
break;
case F_GET_RW_HINT:
- err = fcntl_get_rw_hint(filp, cmd, arg);
+ err = fcntl_get_rw_hint(filp, arg);
break;
case F_SET_RW_HINT:
- err = fcntl_set_rw_hint(filp, cmd, arg);
+ err = fcntl_set_rw_hint(filp, arg);
break;
default:
break;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fcntl: trim arguments
2025-09-22 11:30 ` [PATCH] fcntl: trim arguments Kanchan Joshi
@ 2025-09-22 12:16 ` Jan Kara
2025-09-23 10:43 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kara @ 2025-09-22 12:16 UTC (permalink / raw)
To: Kanchan Joshi; +Cc: linux-fsdevel, brauner, jack
On Mon 22-09-25 17:00:46, Kanchan Joshi wrote:
> Remove superfluous argument from fcntl_{get/set}_rw_hint.
> No functional change.
>
> Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Looks good. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/fcntl.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/fs/fcntl.c b/fs/fcntl.c
> index 5598e4d57422..72f8433d9109 100644
> --- a/fs/fcntl.c
> +++ b/fs/fcntl.c
> @@ -355,8 +355,7 @@ static bool rw_hint_valid(u64 hint)
> }
> }
>
> -static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
> - unsigned long arg)
> +static long fcntl_get_rw_hint(struct file *file, unsigned long arg)
> {
> struct inode *inode = file_inode(file);
> u64 __user *argp = (u64 __user *)arg;
> @@ -367,8 +366,7 @@ static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
> return 0;
> }
>
> -static long fcntl_set_rw_hint(struct file *file, unsigned int cmd,
> - unsigned long arg)
> +static long fcntl_set_rw_hint(struct file *file, unsigned long arg)
> {
> struct inode *inode = file_inode(file);
> u64 __user *argp = (u64 __user *)arg;
> @@ -547,10 +545,10 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
> err = memfd_fcntl(filp, cmd, argi);
> break;
> case F_GET_RW_HINT:
> - err = fcntl_get_rw_hint(filp, cmd, arg);
> + err = fcntl_get_rw_hint(filp, arg);
> break;
> case F_SET_RW_HINT:
> - err = fcntl_set_rw_hint(filp, cmd, arg);
> + err = fcntl_set_rw_hint(filp, arg);
> break;
> default:
> break;
> --
> 2.25.1
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fcntl: trim arguments
2025-09-22 11:30 ` [PATCH] fcntl: trim arguments Kanchan Joshi
2025-09-22 12:16 ` Jan Kara
@ 2025-09-23 10:43 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2025-09-23 10:43 UTC (permalink / raw)
To: linux-fsdevel, Kanchan Joshi; +Cc: Christian Brauner, jack
On Mon, 22 Sep 2025 17:00:46 +0530, Kanchan Joshi wrote:
> Remove superfluous argument from fcntl_{get/set}_rw_hint.
> No functional change.
>
>
Applied to the vfs-6.18.misc branch of the vfs/vfs.git tree.
Patches in the vfs-6.18.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.18.misc
[1/1] fcntl: trim arguments
https://git.kernel.org/vfs/vfs/c/e6524dd4c068
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-23 10:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20250922113152epcas5p2d3aa052da211b541e0182c94b1ba510f@epcas5p2.samsung.com>
2025-09-22 11:30 ` [PATCH] fcntl: trim arguments Kanchan Joshi
2025-09-22 12:16 ` Jan Kara
2025-09-23 10:43 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox