diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2003-10-06 03:28:03 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2003-10-06 03:28:03 +0000 |
| commit | a844eb934c3d96a51185beb3092a35cc22d30a04 (patch) | |
| tree | 92089d40e5a4ce8715498721f3c361fa8b9fc537 | |
| parent | 8af6a5709946c2146633af634dbd6bb1910e1d2c (diff) | |
Notes
| -rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 6166424fb3920..768a6b536ea80 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -2563,8 +2563,12 @@ indir_trunc(freeblks, dbn, level, lbn, countp) * a complete copy of the indirect block in memory for our use. * Otherwise we have to read the blocks in from the disk. */ +#ifdef notyet bp = getblk(freeblks->fb_devvp, dbn, (int)fs->fs_bsize, 0, 0, GB_NOCREAT); +#else + bp = incore(freeblks->fb_devvp, dbn); +#endif ACQUIRE_LOCK(&lk); if (bp != NULL && (wk = LIST_FIRST(&bp->b_dep)) != NULL) { if (wk->wk_type != D_INDIRDEP || @@ -2582,8 +2586,10 @@ indir_trunc(freeblks, dbn, level, lbn, countp) VFSTOUFS(freeblks->fb_mnt)->um_numindirdeps -= 1; FREE_LOCK(&lk); } else { +#ifdef notyet if (bp) brelse(bp); +#endif FREE_LOCK(&lk); error = bread(freeblks->fb_devvp, dbn, (int)fs->fs_bsize, NOCRED, &bp); |
