fs: anon_inodes implement dname
authorNick Piggin <npiggin@suse.de>
Fri, 20 Nov 2009 22:28:35 +0000 (14:28 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 15:48:12 +0000 (10:48 -0500)
commitb9aff027b2c1d6019d237382c78fd396f9de2ea5
treeb1a136f50d725d5744ac5b9dbc01e66226ce512f
parent06777d308f8f9ddb67798d34bf193101a4bdf06c
fs: anon_inodes implement dname

Add a d_dname method for anon_inodes filesystem, the same way pipefs and
sockfs pseudo filesystems.  This allows us to remove the DCACHE_UNHASHED
hack from anon_inodes.c (see next patch).

[AV: inumber is useless here, dropped from anon_inodefs_dname()]

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Miklos Szeredi <mszeredi@suse.cz>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/anon_inodes.c