From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [PATCH v2 1/2] kernfs: Convert to u64 id Date: Mon, 4 Nov 2019 08:59:01 -0500 Message-ID: <20191104085901.06035a26@grimm.local.home> References: <20191104084520.398584-1-namhyung@kernel.org> <20191104084520.398584-2-namhyung@kernel.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20191104084520.398584-2-namhyung@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Namhyung Kim Cc: Tejun Heo , Johannes Weiner , Li Zefan , LKML , Greg Kroah-Hartman , "Rafael J. Wysocki" , Song Liu , cgroups@vger.kernel.org, Ingo Molnar , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Jens Axboe , "David S. Miller" , linux-block@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org On Mon, 4 Nov 2019 17:45:19 +0900 Namhyung Kim wrote: > From: Tejun Heo > > The kernfs_id was an union type sharing a 64bit id with 32bit ino + > gen. But it resulted in using 32bit inode even on 64bit systems. > Also dealing with an union is annoying especially if you just want to > use a single id. > > Thus let's get rid of the kernfs_node_id type and use u64 directly. > The upper 32bit is used for gen and lower is for ino on 32bit systems. > The kernfs_id_ino() and kernfs_id_gen() helpers will take care of the > bit handling depends on the system word size. > > Cc: Steven Rostedt > Cc: Ingo Molnar > Cc: Alexei Starovoitov > Cc: Daniel Borkmann > Cc: Martin KaFai Lau > Cc: Song Liu > Cc: Yonghong Song > Cc: Jens Axboe > Cc: "David S. Miller" > Cc: linux-block@vger.kernel.org > Cc: bpf@vger.kernel.org > Cc: netdev@vger.kernel.org > Signed-off-by: Tejun Heo > [namhyung: fix build error in bpf_get_current_cgroup_id()] > Signed-off-by: Namhyung Kim > --- > fs/kernfs/dir.c | 36 ++++++++----- > fs/kernfs/file.c | 4 +- > fs/kernfs/inode.c | 4 +- > fs/kernfs/kernfs-internal.h | 2 - > fs/kernfs/mount.c | 92 +++++++++++++++++++------------- > include/linux/cgroup.h | 17 +++--- > include/linux/exportfs.h | 5 ++ > include/linux/kernfs.h | 47 +++++++++------- > include/trace/events/writeback.h | 92 ++++++++++++++++---------------- I only looked at the above file, and didn't see anything bad about it. Acked-by: Steven Rostedt (VMware) -- Steve > kernel/bpf/helpers.c | 2 +- > kernel/cgroup/cgroup.c | 5 +- > kernel/trace/blktrace.c | 66 +++++++++++------------ > net/core/filter.c | 4 +- > 13 files changed, 207 insertions(+), 169 deletions(-)