summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-27 02:51:57 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-27 02:51:57 +0000
commit33cb86f397d267719d3aa68c40b15abb3c31c465 (patch)
tree88ce87933a33cae031664e2e1b9af646f432abf6 /ufs
parent6ef59be7e2ab2cdb8a80356ea45e4b1218610c62 (diff)
Formerly bmap.c.~4~
Diffstat (limited to 'ufs')
-rw-r--r--ufs/bmap.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ufs/bmap.c b/ufs/bmap.c
index 58ec06f4..18c53662 100644
--- a/ufs/bmap.c
+++ b/ufs/bmap.c
@@ -18,19 +18,17 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
#include "ufs.h"
-#include "dinode.h"
/* For logical block number LBN of file NP, look it the block address,
giving the "path" of indirect blocks to the file, starting
with the least indirect. Fill *INDIRS with information for
the block. */
error_t
-fetch_indir_spec (struct node *np, daddr_t lbn, struct iblock_spec *indirs)
+fetch_indir_spec (struct node *np, volatile daddr_t lbn,
+ struct iblock_spec *indirs)
{
struct dinode *di = dino (np->dn->number);
- int boff;
error_t err;
daddr_t *siblock;
@@ -48,9 +46,9 @@ fetch_indir_spec (struct node *np, daddr_t lbn, struct iblock_spec *indirs)
lbn -= NDADDR;
- indirs[0].offset = lbn % NINDIR (sblock)
+ indirs[0].offset = lbn % NINDIR (sblock);
- if (lbn / NINBIR (sblock))
+ if (lbn / NINDIR (sblock))
{
/* We will use the double indirect block */
int ibn;