From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail03-md.ns.itscom.net ([175.177.155.113]:59611 "EHLO mail03-md.ns.itscom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728135AbeHBCMw (ORCPT ); Wed, 1 Aug 2018 22:12:52 -0400 From: "J. R. Okajima" Subject: Re: [RFC PATCH 0/4] vfs: map unique ino/dev pairs for user space To: Mark Fasheh Cc: Al Viro , linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, Andrew Morton , Amir Goldstein , linux-unionfs@vger.kernel.org, Jeff Mahoney , linux-nfs@vger.kernel.org In-Reply-To: <20180731211045.5671-1-mfasheh@suse.de> References: <20180731211045.5671-1-mfasheh@suse.de> Date: Thu, 02 Aug 2018 09:24:27 +0900 Message-ID: <30133.1533169467@jrobl> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Mark Fasheh: > The following patches fix these inconsistencies by introducing a VFS helper > function which calls the underlying filesystem ->getattr to get our real > inode number / device pair. The returned values can then be used at those > places in the kernel where we are incorrectly reporting our ino/dev pair. > We then update fs/proc/ and fs/locks.c to use this helper when writing to > /proc/PID/maps and /proc/locks respectively. I definitly agree that ino/dev pair should be a unique identity on the system. But I don't know why you are tryng to solve the problem in generic VFS layer instead of the problematic FS. Isn't it an unnecessary overhead for many FS? How about creating a new f_op member ->get_ino_dev(), ->show_identity() or something, and implement the new f_op in the problematic FS only? I hope it will be a lighter way to get the pair than generic getattr way. J. R. Okajima