]> 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 10:20:18 +0000 (03:20 -0700)
commita9e93fe0ed25ec98c3f07fe0f2435f9f9a2cb962
tree8227252a63bdbf9ff45a4a6422a30c9a8c9b0fc6
parent6d37b9e156a282eb959d8457c2baca13083b36ea
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