Commit 6f7f7caa authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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: default avatarAlex Elder <>
Cc: Ian Kent <>
Cc: Nick Piggin <>
Cc: Al Viro <>
Signed-off-by: default avatarLinus Torvalds <>
parent d018b6f4
......@@ -1357,8 +1357,8 @@ EXPORT_SYMBOL(d_alloc_name);
void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op)
BUG_ON(dentry->d_flags & (DCACHE_OP_HASH |
WARN_ON_ONCE(dentry->d_flags & (DCACHE_OP_HASH |
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment