diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-28 12:52:22 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 22:20:08 -0400 |
commit | 2903ff019b346ab8d36ebbf54853c3aaf6590608 (patch) | |
tree | 962d94054765bb37bc00e977c3036e65c5fd91fe /include/linux/file.h | |
parent | a5b470ba06aa3f96999ede5feba178df6bdb134a (diff) |
switch simple cases of fget_light to fdget
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/file.h')
-rw-r--r-- | include/linux/file.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/file.h b/include/linux/file.h index c38bfbff4647..cbacf4faf447 100644 --- a/include/linux/file.h +++ b/include/linux/file.h | |||
@@ -47,6 +47,9 @@ static inline struct fd fdget(unsigned int fd) | |||
47 | return (struct fd){f,b}; | 47 | return (struct fd){f,b}; |
48 | } | 48 | } |
49 | 49 | ||
50 | extern struct file *fget_raw(unsigned int fd); | ||
51 | extern struct file *fget_raw_light(unsigned int fd, int *fput_needed); | ||
52 | |||
50 | static inline struct fd fdget_raw(unsigned int fd) | 53 | static inline struct fd fdget_raw(unsigned int fd) |
51 | { | 54 | { |
52 | int b; | 55 | int b; |
@@ -54,8 +57,6 @@ static inline struct fd fdget_raw(unsigned int fd) | |||
54 | return (struct fd){f,b}; | 57 | return (struct fd){f,b}; |
55 | } | 58 | } |
56 | 59 | ||
57 | extern struct file *fget_raw(unsigned int fd); | ||
58 | extern struct file *fget_raw_light(unsigned int fd, int *fput_needed); | ||
59 | extern int f_dupfd(unsigned int from, struct file *file, unsigned flags); | 60 | extern int f_dupfd(unsigned int from, struct file *file, unsigned flags); |
60 | extern int replace_fd(unsigned fd, struct file *file, unsigned flags); | 61 | extern int replace_fd(unsigned fd, struct file *file, unsigned flags); |
61 | extern void set_close_on_exec(unsigned int fd, int flag); | 62 | extern void set_close_on_exec(unsigned int fd, int flag); |