Messages in this thread Patch in this message | | | Date | Tue, 8 Sep 2015 19:14:49 +0200 | From | Oleg Nesterov <> | Subject | [PATCH 2/3] fput: move ->f_next_put into a union with ->f_version |
| |
file->f_next_put can share the memory with file->f_version (I hope).
Signed-off-by: Oleg Nesterov <oleg@redhat.com> --- 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
| |