]> git.baikalelectronics.ru Git - kernel.git/commit
do_last: kill a rudiment of old ->d_revalidate() workaround
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 9 Mar 2011 06:34:45 +0000 (01:34 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 13:15:27 +0000 (09:15 -0400)
commit3518e95e1a5b146ccf7abb8671228c650132f358
tree76bf116e7a8c75be60734527dd804632dee8a95b
parent88c0d4030287f47d18acdfb4e71f8f43c78ba52b
do_last: kill a rudiment of old ->d_revalidate() workaround

There used to be time when ->d_revalidate() couldn't return an error.
So intents code had lookup_instantiate_filp() stash ERR_PTR(error)
in nd->intent.open.filp and had it checked after lookup_hash(), to
catch the otherwise silent failures.  That had been introduced by
commit 2c997860cfa59cfdbfd98d922c7dbe9c035450be.  These days
->d_revalidate() can and does propagate errors back to callers
explicitly, so this check isn't needed anymore.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c