From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:38606 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389900AbeHATcr (ORCPT ); Wed, 1 Aug 2018 15:32:47 -0400 Date: Wed, 1 Aug 2018 17:45:56 +0000 From: Mark Fasheh To: Amir Goldstein Cc: Al Viro , linux-fsdevel , Linux Btrfs , Andrew Morton , overlayfs , Jeff Mahoney , Linux NFS Mailing List Subject: Re: [PATCH 4/4] locks: map correct ino/dev pairs when exporting to userspace Message-ID: <20180801174556.GD20761@wotan.suse.de> Reply-To: Mark Fasheh References: <20180731211045.5671-1-mfasheh@suse.de> <20180731211045.5671-5-mfasheh@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Aug 01, 2018 at 08:37:31AM +0300, Amir Goldstein wrote: > > if (inode) { > > + __u64 ino; > > + dev_t dev; > > + > > + vfs_map_unique_ino_dev(dentry, &ino, &dev); > > /* userspace relies on this representation of dev_t */ > > seq_printf(f, "%d %02x:%02x:%ld ", fl_pid, > > - MAJOR(inode->i_sb->s_dev), > > - MINOR(inode->i_sb->s_dev), inode->i_ino); > > + MAJOR(dev), MINOR(dev), inode->i_ino); > > Don't you mean ,ino); ? Indeed I do, thanks for catching that one Amir. --Mark