[PATCH 2/3] fput: move ->f_next_put into a union with ->f_version
From: Oleg Nesterov
Date: Tue Sep 08 2015 - 13:18:27 EST
file->f_next_put can share the memory with file->f_version (I hope).
Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
---
include/linux/fs.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 3941b86..58faad6 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -860,8 +860,10 @@ struct file {
const struct cred *f_cred;
struct file_ra_state f_ra;
- u64 f_version;
- struct file *f_next_put;
+ union {
+ u64 f_version;
+ struct file *f_next_put;
+ };
#ifdef CONFIG_SECURITY
void *f_security;
#endif
--
2.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/