Turn d_set_d_op() BUG_ON() into WARN_ON_ONCE()
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 21:26:18 +0000 (13:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 21:26:18 +0000 (13:26 -0800)
commit6f7f7caab259026234277b659485d22c1dcb1ab4
treedb5515958f3cc27462b3c8324b1fb05677193d52
parentd018b6f4f1539f3679fbdc2d02d58d09e76be84a
Turn d_set_d_op() BUG_ON() into WARN_ON_ONCE()

It's indicative of a real problem, and it actually triggers with
autofs4, but the BUG_ON() is excessive.  The autofs4 case is being fixed
(to only set d_op in the ->lookup method) but not merged yet.  In the
meantime this gets the code limping along.

Reported-by: Alex Elder <aelder@sgi.com>
Cc: Ian Kent <raven@themaw.net>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c