Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ffs/ffs_snapshot.c
Show First 20 Lines • Show All 575 Lines • ▼ Show 20 Lines | if (xvp->v_usecount == 0 && | ||||
vdrop(xvp); | vdrop(xvp); | ||||
continue; | continue; | ||||
} | } | ||||
VI_UNLOCK(xvp); | VI_UNLOCK(xvp); | ||||
#ifdef DIAGNOSTIC | #ifdef DIAGNOSTIC | ||||
if (snapdebug) | if (snapdebug) | ||||
vn_printf(xvp, "ffs_snapshot: busy vnode "); | vn_printf(xvp, "ffs_snapshot: busy vnode "); | ||||
#endif | #endif | ||||
if (VOP_GETATTR(xvp, &vat, td->td_ucred) == 0 && | if (VOP_GETATTR(xvp, 0, &vat, td->td_ucred) == 0 && | ||||
vat.va_nlink > 0) { | vat.va_nlink > 0) { | ||||
VOP_UNLOCK(xvp); | VOP_UNLOCK(xvp); | ||||
vdrop(xvp); | vdrop(xvp); | ||||
continue; | continue; | ||||
} | } | ||||
xp = VTOI(xvp); | xp = VTOI(xvp); | ||||
if (ffs_checkfreefile(copy_fs, vp, xp->i_number)) { | if (ffs_checkfreefile(copy_fs, vp, xp->i_number)) { | ||||
VOP_UNLOCK(xvp); | VOP_UNLOCK(xvp); | ||||
▲ Show 20 Lines • Show All 2,168 Lines • Show Last 20 Lines |