Skip to content

Commit 6fa6e4e

Browse files
author
Al Viro
committed
coda: is_bad_inode() is always false there
... since dbd822046445 ("[PATCH] Coda FS update") back in 2002 Signed-off-by: Al Viro <[email protected]>
1 parent 7aaa804 commit 6fa6e4e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

fs/coda/dir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,6 @@ static int coda_dentry_revalidate(struct inode *dir, const struct qstr *name,
449449
inode = d_inode(de);
450450
if (!inode || is_root_inode(inode))
451451
goto out;
452-
if (is_bad_inode(inode))
453-
goto bad;
454452

455453
cii = ITOC(d_inode(de));
456454
if (!(cii->c_flags & (C_PURGE | C_FLUSH)))
@@ -470,7 +468,6 @@ static int coda_dentry_revalidate(struct inode *dir, const struct qstr *name,
470468
spin_lock(&cii->c_lock);
471469
cii->c_flags &= ~(C_VATTR | C_PURGE | C_FLUSH);
472470
spin_unlock(&cii->c_lock);
473-
bad:
474471
return 0;
475472
out:
476473
return 1;
@@ -489,7 +486,7 @@ static int coda_dentry_delete(const struct dentry * dentry)
489486
return 0;
490487

491488
inode = d_inode(dentry);
492-
if (!inode || is_bad_inode(inode))
489+
if (!inode)
493490
return 1;
494491

495492
cii = ITOC(inode);

0 commit comments

Comments
 (0)