summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-08 15:40:11 +0000
committerphk <phk@FreeBSD.org>2005-02-08 15:40:11 +0000
commit5f0dfdfccfa05975c1daf06bd9a20a07b688f2bc (patch)
tree7aa0af55725b365148464ca1d07d53f6373879d2
parent0c981fbca0000033467088aa79ac288566ff3366 (diff)
downloadFreeBSD-src-5f0dfdfccfa05975c1daf06bd9a20a07b688f2bc.zip
FreeBSD-src-5f0dfdfccfa05975c1daf06bd9a20a07b688f2bc.tar.gz
Use VOP_STRATEGY_APV() instead of direct dereference, this is more
correct.
-rw-r--r--sys/ufs/ffs/ffs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c
index 56153d5..e0aae3c 100644
--- a/sys/ufs/ffs/ffs_vnops.c
+++ b/sys/ufs/ffs/ffs_vnops.c
@@ -1205,9 +1205,9 @@ struct vop_strategy_args {
lbn = ap->a_bp->b_lblkno;
if (VTOI(vp)->i_fs->fs_magic == FS_UFS2_MAGIC &&
lbn < 0 && lbn >= -NXADDR)
- return ufs_vnodeops.vop_strategy(ap);
+ return (VOP_STRATEGY_APV(&ufs_vnodeops, ap));
if (vp->v_type == VFIFO)
- return ufs_fifoops.vop_strategy(ap);
+ return (VOP_STRATEGY_APV(&ufs_fifoops, ap));
panic("spec nodes went here");
}
OpenPOWER on IntegriCloud