summaryrefslogtreecommitdiff
path: root/sys/src/cmd/hjfs/dat.h
diff options
context:
space:
mode:
authorspew <devnull@localhost>2017-03-21 14:07:18 -0500
committerspew <devnull@localhost>2017-03-21 14:07:18 -0500
commit8dd9f0e97096abb6ad42c8751b336d8be6dba969 (patch)
treed546c05a0b9f81fb88a2864f7fd3902ceea5882e /sys/src/cmd/hjfs/dat.h
parent1e2d95a8038346d38f1cebeabe0ad64ea874b7fe (diff)
hjfs: Clear all refs to zero when reaming.
And a couple clarity/formatting changes
Diffstat (limited to 'sys/src/cmd/hjfs/dat.h')
-rw-r--r--sys/src/cmd/hjfs/dat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/hjfs/dat.h b/sys/src/cmd/hjfs/dat.h
index 83359d48f..f05229a29 100644
--- a/sys/src/cmd/hjfs/dat.h
+++ b/sys/src/cmd/hjfs/dat.h
@@ -80,7 +80,8 @@ enum {
DENTRYSIZ = NAMELEN + 4 * sizeof(ushort) + 13 + (3 + NDIRECT + NINDIRECT) * sizeof(uvlong),
DEPERBLK = RBLOCK / DENTRYSIZ,
OFFPERBLK = RBLOCK / 12,
- REFPERBLK = RBLOCK / 3,
+ REFSIZ = 3,
+ REFPERBLK = RBLOCK / REFSIZ,
};
struct BufReq {
@@ -232,5 +233,4 @@ enum { /* getblk modes */
GBOVERWR = 3,
};
-#define HOWMANY(a, b) (((a)+((b)-1))/(b))
-#define ROUNDUP(a, b) (HOWMANY(a,b)*(b))
+#define HOWMANY(a) (((a)+(RBLOCK-1))/RBLOCK)