]> git.baikalelectronics.ru Git - kernel.git/commit
cramfs: fix named-pipe handling
authorAl Viro <viro@ZenIV.linux.org.uk>
Wed, 20 Aug 2008 21:09:24 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 20 Aug 2008 22:40:32 +0000 (15:40 -0700)
commit9956e88feae51ac81623785769433e44dd2ef664
treec767b9a7a41893c434e85532f3e02515433076f1
parent382edc89eda76583604121339d22b00596e1d909
cramfs: fix named-pipe handling

After commit 354df279c52b291395dabe76fb2b090d21e10438 (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>
Cc: <stable@kernel.org> [2.6.14 and later]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cramfs/inode.c