aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2017-06-13 13:35:50 +0200
committerJeff Layton <[email protected]>2017-06-14 08:46:36 -0400
commit393cc3f51135ea2520521f776ef3afdf3395c797 (patch)
tree39e155523cb90f73b234ebf1bf3a580ba0ab1e36 /include/linux/fs.h
parent94073ad77fff221b5e66b8b9863a546ba212d6a3 (diff)
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Cc: Jeff Layton <[email protected]> Cc: "J. Bruce Fields" <[email protected]> Cc: Alexander Viro <[email protected]> Cc: [email protected] Signed-off-by: Jeff Layton <[email protected]>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
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);