Coverity CID 746: Remove dead code. lbn >= NDADDR is mutually exclusive to
snapshot_locked == 0.
This commit is contained in:
parent
88064d75f5
commit
53ae068fc6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs_snapshot.c,v 1.27 2006/04/10 22:01:06 bouyer Exp $ */
|
||||
/* $NetBSD: ffs_snapshot.c,v 1.28 2006/04/18 21:39:03 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2000 Marshall Kirk McKusick. All Rights Reserved.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.27 2006/04/10 22:01:06 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.28 2006/04/18 21:39:03 christos Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ffs.h"
|
||||
|
@ -1554,8 +1554,6 @@ retry:
|
|||
lockmgr(vp->v_vnlock,
|
||||
LK_INTERLOCK | LK_EXCLUSIVE | LK_NOWAIT,
|
||||
VI_MTX(devvp)) != 0) {
|
||||
if (lbn >= NDADDR)
|
||||
brelse(ibp);
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_SLEEPFAIL);
|
||||
goto retry;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue