projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comments.
[pintos-anon]
/
src
/
filesys
/
inode.c
diff --git
a/src/filesys/inode.c
b/src/filesys/inode.c
index c704148911be75b70116795299d93ed7af15d395..d4d741e53c44c9121793333e5f58b55770982472 100644
(file)
--- a/
src/filesys/inode.c
+++ b/
src/filesys/inode.c
@@
-72,7
+72,7
@@
inode_create (struct bitmap *b, disk_sector_t sector, off_t length)
idx->data.length = length;
while (idx->data.sector_cnt < sector_cnt)
{
idx->data.length = length;
while (idx->data.sector_cnt < sector_cnt)
{
- size_t sector = bitmap_scan_and_flip (b, 0,
bitmap_size (b)
, false);
+ size_t sector = bitmap_scan_and_flip (b, 0,
1
, false);
if (sector == BITMAP_ERROR)
goto error;
if (sector == BITMAP_ERROR)
goto error;