diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2020-01-14 11:41:08 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2020-01-14 11:41:08 +0100 |
commit | 02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch) | |
tree | f053238978479e408a2b83571443e132f30586ab /src/libdiskfs/cache.c | |
parent | c0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff) | |
parent | 3d1382b98a502d0c34d5ba2c462396acc515016e (diff) | |
download | plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2 plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/libdiskfs/cache.c')
-rw-r--r-- | src/libdiskfs/cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libdiskfs/cache.c b/src/libdiskfs/cache.c index 7b06fa4f..2888ae83 100644 --- a/src/libdiskfs/cache.c +++ b/src/libdiskfs/cache.c @@ -3,7 +3,7 @@ #include <diskfs.h> /* - * Disk cache. Caches by offset, so higher levels have + * Disk cache. Caches by offset, so higher levels have * to deal with alignment issues (if we get asked for the * blocks at offsets 0 and 1, we'll do two reads). */ @@ -43,7 +43,7 @@ addtohash(DiskCache *d, DiskCacheBlock *b, u64int offset) if(b->offset != ~(u64int)0){ fprint(2, "bad offset in addtohash\n"); - return; + return; } b->offset = offset; h = offset % d->nhash; @@ -227,8 +227,8 @@ diskcacheread(Disk *dd, u32int len, u64int offset) return b; } -/* - * It's okay to remove these from the hash table. +/* + * It's okay to remove these from the hash table. * Either the block is in use by someone or it is on * the lru list. If it's in use it will get put on the lru * list once the refs go away. @@ -264,7 +264,7 @@ diskcacheclose(Disk *dd) blockput(b->subblock); free(d); } - + /* needn't be fast */ static int isprime(int n) |