From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932086AbbIHRSY (ORCPT ); Tue, 8 Sep 2015 13:18:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53504 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755272AbbIHRRf (ORCPT ); Tue, 8 Sep 2015 13:17:35 -0400 Date: Tue, 8 Sep 2015 19:14:49 +0200 From: Oleg Nesterov To: Al Viro , Eric Dumazet , Linus Torvalds Cc: Andrew Morton , Ingo Molnar , Maciej =?utf-8?Q?=C5=BBenczykowski?= , Peter Zijlstra , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] fput: move ->f_next_put into a union with ->f_version Message-ID: <20150908171449.GA14596@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150908171433.GA14573@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org file->f_next_put can share the memory with file->f_version (I hope). Signed-off-by: Oleg Nesterov --- 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