mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
dcache.c: more idiomatic "positives are not allowed" sanity checks
Several functions have BUG_ON/WARN_ON sanity checks that want to verify that dentry is not positive and instead of looking at ->d_inode (as we do in all other places that check that) they look at ->d_alias. Just use the normal helpers instead - that way we no longer even look at ->d_alias for negative dentries Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
2420067cec
commit
5408c22b81
1 changed files with 5 additions and 5 deletions
10
fs/dcache.c
10
fs/dcache.c
Loading…
Add table
Add a link
Reference in a new issue