use NULLVP
[unix-history] / usr / src / sys / ufs / lfs / lfs_vnops.c
index 4360487..716843b 100644 (file)
@@ -14,7 +14,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)lfs_vnops.c 7.36 (Berkeley) %G%
+ *     @(#)lfs_vnops.c 7.37 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -1488,7 +1488,7 @@ ufs_strategy(bp)
                last = start + btodb(bp->b_bcount) - 1;
                for (ep = buf; ep < ebp; ep++) {
                        if (ep == bp || (ep->b_flags & B_INVAL) ||
                last = start + btodb(bp->b_bcount) - 1;
                for (ep = buf; ep < ebp; ep++) {
                        if (ep == bp || (ep->b_flags & B_INVAL) ||
-                           ep->b_vp == (struct vnode *)0)
+                           ep->b_vp == NULLVP)
                                continue;
                        if (VOP_BMAP(ep->b_vp, (daddr_t)0, &vp, (daddr_t)0))
                                continue;
                                continue;
                        if (VOP_BMAP(ep->b_vp, (daddr_t)0, &vp, (daddr_t)0))
                                continue;