projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12ab490
)
Fix typo in comment describing free_map_allocate().
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 14 Nov 2009 04:22:41 +0000
(20:22 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 14 Nov 2009 04:22:41 +0000
(20:22 -0800)
Thanks to Godmar Back for reporting the problem and for the fix.
src/filesys/free-map.c
patch
|
blob
|
history
diff --git
a/src/filesys/free-map.c
b/src/filesys/free-map.c
index 34f2060b1860f23d20ea29f5ed687ec4cbb7a139..db0dc4ae1905014fdd9a1acfa592e03643658381 100644
(file)
--- a/
src/filesys/free-map.c
+++ b/
src/filesys/free-map.c
@@
-21,8
+21,9
@@
free_map_init (void)
/* Allocates CNT consecutive sectors from the free map and stores
the first into *SECTORP.
- Returns true if successful, false if all sectors were
- available. */
+ Returns true if successful, false if not enough consecutive
+ sectors were available or if the free_map file could not be
+ written. */
bool
free_map_allocate (size_t cnt, block_sector_t *sectorp)
{