From: Jeff Layton Subject: [PATCH 3/3] ensure unique i_ino in filesystems without permanent inode numbers (pipefs) Date: Thu, 07 Dec 2006 17:13:12 -0500 Message-ID: <457891F8.9090607@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org pipefs is a rather busy filesystem and so is a good place to start to make sure we flush out any performance problems Signed-off-by: Jeff Layton diff --git a/fs/pipe.c b/fs/pipe.c index b1626f2..d74ae65 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -845,6 +845,9 @@ static struct inode * get_pipe_inode(voi if (!inode) goto fail_inode; + if (iunique_register(inode, 0)) + goto fail_iput; + pipe = alloc_pipe_info(inode); if (!pipe) goto fail_iput;