]> www.infradead.org Git - users/jedix/linux-maple.git/commit
saner proc_get_inode() calling conventions
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 26 Jan 2013 01:11:22 +0000 (20:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:17:32 +0000 (12:17 -0700)
commita518e7cb092f322a2459b499109a6208608eade1
tree9a7b5247b1119722ae40f26f0456ea5719114285
parent8c15d55f4636bcdcab86005ba5c134646b2dea49
saner proc_get_inode() calling conventions

commit d3d009cb965eae7e002ea5badf603ea8f4c34915 upstream.

Make it drop the pde in *all* cases when no new reference to it is
put into an inode - both when an inode had already been set up
(as we were already doing) and when inode allocation has failed.
Makes for simpler logics in callers...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/proc/generic.c
fs/proc/inode.c