d_really_is_negative(dentry) is a check for d_inode(dentry) being NULL;
rechecking that is pointless (and no, it can't race - the caller is holding
->d_lock, so ->d_inode is stable)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
*/
static int coda_dentry_delete(const struct dentry * dentry)
{
- struct inode *inode;
- struct coda_inode_info *cii;
-
- if (d_really_is_negative(dentry))
- return 0;
+ struct inode *inode = d_inode(dentry);
- inode = d_inode(dentry);
if (!inode)
- return 1;
+ return 0;
- cii = ITOC(inode);
- if (cii->c_flags & C_PURGE)
+ if (ITOC(inode)->c_flags & C_PURGE)
return 1;
return 0;