]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cramfs: fix named-pipe handling
authorAl Viro <viro@ZenIV.linux.org.uk>
Wed, 20 Aug 2008 22:50:04 +0000 (22:50 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 11:44:15 +0000 (04:44 -0700)
commit363875f5551b029ae63b5b1a3f3ccd72b9460339
tree6f28f591cbe07a34165011c08dde8268c31c96f0
parentc373e9c53f34979567e7baaa3abcc9258000a962
cramfs: fix named-pipe handling

commit 82d63fc9e30687c055b97928942b8893ea65b0bb upstream

After commit a97c9bf33f4612e2aed6f000f6b1d268b6814f3c (fix cramfs
making duplicate entries in inode cache) in kernel 2.6.14, named-pipe
on cramfs does not work properly.

It seems the commit make all named-pipe on cramfs share their inode
(and named-pipe buffer).

Make ..._test() refuse to merge inodes with ->i_ino == 1, take inode setup
back to get_cramfs_inode() and make ->drop_inode() evict ones with ->i_ino
== 1 immediately.

Reported-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cramfs/inode.c