diff options
-rw-r--r-- | kernel/bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bio.c b/kernel/bio.c index a1f4474..153c2f2 100644 --- a/kernel/bio.c +++ b/kernel/bio.c @@ -52,8 +52,8 @@ binit(void) // init each bucket for (int i = 0; i < N_BUCKETS; i++) { - static char lock_name[16]; - snprintf(lock_name, sizeof(lock_name), "bio.bucket.%d", i); + static char lock_name[20]; + snprintf(lock_name, sizeof(lock_name), "bcache.bucket.%d", i); initlock(&bcache.buckets[i].lock, lock_name); bcache.buckets[i].head.prev = &bcache.buckets[i].head; bcache.buckets[i].head.next = &bcache.buckets[i].head; |