Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798AbdF1SNH (ORCPT ); Wed, 28 Jun 2017 14:13:07 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:36800 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbdF1SM7 (ORCPT ); Wed, 28 Jun 2017 14:12:59 -0400 Date: Wed, 28 Jun 2017 14:12:56 -0400 From: Tejun Heo To: Shaohua Li Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, gregkh@linuxfoundation.org, hch@lst.de, axboe@fb.com, rostedt@goodmis.org, lizefan@huawei.com, Kernel-team@fb.com, Shaohua Li Subject: Re: [PATCH V4 07/12] cgroup: export fhandle info for a cgroup Message-ID: <20170628181256.GC24647@htj.duckdns.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 654 Lines: 19 On Wed, Jun 28, 2017 at 09:29:57AM -0700, Shaohua Li wrote: > From: Shaohua Li > > Add an API to export cgroup fhandle info. We don't export a full 'struct > file_handle', there are unrequired info. Sepcifically, cgroup is always > a directory, so we don't need a 'FILEID_INO32_GEN_PARENT' type fhandle, > we only need export the inode number and generation number just like > what generic_fh_to_dentry does. And we can avoid the overhead of getting > an inode too, since kernfs_node_id (ino and generation) has all the info > required. > > Signed-off-by: Shaohua Li Acked-by: Tejun Heo Thanks. -- tejun