projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfs: atomic f_pos accesses as per POSIX
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
include
/
linux
/
file.h
diff --git
a/include/linux/file.h
b/include/linux/file.h
index
cbacf4f
..
f2517fa
100644
(file)
--- a/
include/linux/file.h
+++ b/
include/linux/file.h
@@
-28,12
+28,14
@@
static inline void fput_light(struct file *file, int fput_needed)
struct fd {
struct file *file;
-
int need_put
;
+
unsigned int flags
;
};
+#define FDPUT_FPUT 1
+#define FDPUT_POS_UNLOCK 2
static inline void fdput(struct fd fd)
{
- if (fd.
need_put
)
+ if (fd.
flags & FDPUT_FPUT
)
fput(fd.file);
}