diff options
| author | Jiri Slaby <jslaby@suse.cz> | 2017-06-13 14:35:50 +0300 |
|---|---|---|
| committer | Jeff Layton <jlayton@redhat.com> | 2017-06-14 15:46:36 +0300 |
| commit | 393cc3f51135ea2520521f776ef3afdf3395c797 (patch) | |
| tree | 39e155523cb90f73b234ebf1bf3a580ba0ab1e36 /include/linux | |
| parent | 94073ad77fff221b5e66b8b9863a546ba212d6a3 (diff) | |
| download | linux-393cc3f51135ea2520521f776ef3afdf3395c797.tar.xz | |
fs/fcntl: f_setown, allow returning error
Allow f_setown to return an error value. We will fail in the next patch
with EINVAL for bad input to f_setown, so tile the path for the later
patch.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Cc: Jeff Layton <jlayton@poochiereds.net>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index aa4affb38c39..25ee1ff6d45b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1249,7 +1249,7 @@ extern void fasync_free(struct fasync_struct *); extern void kill_fasync(struct fasync_struct **, int, int); extern void __f_setown(struct file *filp, struct pid *, enum pid_type, int force); -extern void f_setown(struct file *filp, unsigned long arg, int force); +extern int f_setown(struct file *filp, unsigned long arg, int force); extern void f_delown(struct file *filp); extern pid_t f_getown(struct file *filp); extern int send_sigurg(struct fown_struct *fown); |
