projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vnodeop argument macro expansion
[unix-history]
/
usr
/
src
/
sys
/
ufs
/
lfs
/
lfs_balloc.c
diff --git
a/usr/src/sys/ufs/lfs/lfs_balloc.c
b/usr/src/sys/ufs/lfs/lfs_balloc.c
index
ef22189
..
2249144
100644
(file)
--- a/
usr/src/sys/ufs/lfs/lfs_balloc.c
+++ b/
usr/src/sys/ufs/lfs/lfs_balloc.c
@@
-4,7
+4,7
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)lfs_balloc.c 7.
29
(Berkeley) %G%
+ * @(#)lfs_balloc.c 7.
30
(Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
@@
-33,10
+33,6
@@
int lfs_getlbns __P((struct vnode *, daddr_t, INDIR *, int *));
int
lfs_bmap (ap)
struct vop_bmap_args *ap;
int
lfs_bmap (ap)
struct vop_bmap_args *ap;
-#define vp (ap->a_vp)
-#define bn (ap->a_bn)
-#define vpp (ap->a_vpp)
-#define bnp (ap->a_bnp)
{
#ifdef VERBOSE
printf("lfs_bmap\n");
{
#ifdef VERBOSE
printf("lfs_bmap\n");
@@
-45,17
+41,13
@@
lfs_bmap (ap)
* Check for underlying vnode requests and ensure that logical
* to physical mapping is requested.
*/
* Check for underlying vnode requests and ensure that logical
* to physical mapping is requested.
*/
- if (vpp != NULL)
- *
vpp = VTOI(
vp)->i_devvp;
- if (bnp == NULL)
+ if (
ap->a_
vpp != NULL)
+ *
ap->a_vpp = VTOI(ap->a_
vp)->i_devvp;
+ if (
ap->a_
bnp == NULL)
return (0);
return (0);
- return (lfs_bmaparray(
vp, bn,
bnp, NULL, NULL));
+ return (lfs_bmaparray(
ap->a_vp, ap->a_bn, ap->a_
bnp, NULL, NULL));
}
}
-#undef vp
-#undef bn
-#undef vpp
-#undef bnp
/*
* LFS has a different version of bmap from FFS because of a naming conflict.
/*
* LFS has a different version of bmap from FFS because of a naming conflict.