Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126421
b: refs/heads/master
c: 50682bb
h: refs/heads/master
i:
  126419: 507de41
v: v3
  • Loading branch information
Eric Sesterhenn authored and Linus Torvalds committed Jan 6, 2009
1 parent bbdb5a6 commit e9ae0dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1f89ec95bd28b0927e76c46a7cc0927b7521c1d
refs/heads/master: 50682bb4de35544466c264c017030de826614367
12 changes: 12 additions & 0 deletions trunk/fs/bfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,18 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent)
- le32_to_cpu(bfs_sb->s_start)) >> BFS_BSIZE_BITS;
info->si_freei = 0;
info->si_lf_eblk = 0;

/* can we read the last block? */
bh = sb_bread(s, info->si_blocks - 1);
if (!bh) {
printf("Last block not available: %lu\n", info->si_blocks - 1);
iput(inode);
ret = -EIO;
kfree(info->si_imap);
goto out;
}
brelse(bh);

bh = NULL;
for (i = BFS_ROOT_INO; i <= info->si_lasti; i++) {
struct bfs_inode *di;
Expand Down

0 comments on commit e9ae0dd

Please sign in to comment.