Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ static int __file_lookup(struct inode *dir,
*fi = _fi;
return 0;
}
if(!dblock->files[_fi].nr_blk){
/*
this means the _ei and _bi we're looking for is looking at an empty block.
we have to advance nontheless, but nr_blk would just add 0 to fi, causing endless loop.
so we skip this entry by 1, just in case.
*/
_fi += 1;
}
_fi += dblock->files[_fi].nr_blk;
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
}
RELEASE_BUFFER_HEAD(*ret_bi_bh);
Expand Down
Loading