From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762730AbdEVWxO (ORCPT ); Mon, 22 May 2017 18:53:14 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:46229 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762711AbdEVWxL (ORCPT ); Mon, 22 May 2017 18:53:11 -0400 Smtp-Origin-Hostprefix: devbig From: Shaohua Li Smtp-Origin-Hostname: devbig638.prn2.facebook.com To: CC: , , , Smtp-Origin-Cluster: prn2c22 Subject: [PATCH 0/5] kernfs: add exportfs operations Date: Mon, 22 May 2017 15:53:04 -0700 Message-ID: X-Mailer: git-send-email 2.9.3 X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-22_11:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The goal isn't to export kernfs to NFS. The intention is to make tracing cgroup aware. To do this, tracing will record an id for cgroup and use the id to find cgroup name later. The best id is the cgroup directory inode number. Further to filter out stale cgroup directory, fhandle is the best to identify a cgroup. So this is what this series try to do. Thanks, Shaohua Shaohua Li (5): kernfs: implement i_generation kernfs: use idr instead of ida to manage inode number kernfs: add an API to get kernfs node from inode number kernfs: don't set dentry->d_fsdata kernfs: add exportfs operations fs/kernfs/dir.c | 76 +++++++++++++++++++++++++++++++++------------ fs/kernfs/file.c | 6 ++-- fs/kernfs/inode.c | 7 +++-- fs/kernfs/kernfs-internal.h | 4 +++ fs/kernfs/mount.c | 67 ++++++++++++++++++++++++++++++++++----- fs/kernfs/symlink.c | 2 +- include/linux/kernfs.h | 4 ++- 7 files changed, 131 insertions(+), 35 deletions(-) -- 2.9.3