linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] ensure unique i_ino in filesystems without permanent inode numbers (pipefs)
@ 2006-12-07 22:13 Jeff Layton
  2006-12-09 12:19 ` Jeff Layton
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2006-12-07 22:13 UTC (permalink / raw)
  To: linux-kernel, linux-fsdevel

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 <jlayton@redhat.com>

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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-09 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 22:13 [PATCH 3/3] ensure unique i_ino in filesystems without permanent inode numbers (pipefs) Jeff Layton
2006-12-09 12:19 ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).