projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git]
/
include
/
linux
/
file.h
diff --git
a/include/linux/file.h
b/include/linux/file.h
index cbacf4faf447a9dd2b3fd50d3dc2e4f86a120e67..f2517fa2d610524b9f887fb4fda11445220ffb1f 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);
}