Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232419
b: refs/heads/master
c: 3689456
h: refs/heads/master
i:
  232417: 35b381f
  232415: c64e262
v: v3
  • Loading branch information
Phillip Lougher authored and Linus Torvalds committed Jan 26, 2011
1 parent 363c53f commit 2f38cfe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac15ee691fe84cb46cbd2497ddcb10e246f7ee47
refs/heads/master: 3689456b4bd36027022b3215eb2acba51cd0e6b5
8 changes: 8 additions & 0 deletions trunk/fs/squashfs/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ static struct buffer_head *get_block_length(struct super_block *sb,
*length = (unsigned char) bh->b_data[*offset] |
(unsigned char) bh->b_data[*offset + 1] << 8;
*offset += 2;

if (*offset == msblk->devblksize) {
put_bh(bh);
bh = sb_bread(sb, ++(*cur_index));
if (bh == NULL)
return NULL;
*offset = 0;
}
}

return bh;
Expand Down
6 changes: 0 additions & 6 deletions trunk/fs/squashfs/xz_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void **buffer,
if (!buffer_uptodate(bh[k]))
goto release_mutex;

if (avail == 0) {
offset = 0;
put_bh(bh[k++]);
continue;
}

stream->buf.in = bh[k]->b_data + offset;
stream->buf.in_size = avail;
stream->buf.in_pos = 0;
Expand Down
6 changes: 0 additions & 6 deletions trunk/fs/squashfs/zlib_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ static int zlib_uncompress(struct squashfs_sb_info *msblk, void **buffer,
if (!buffer_uptodate(bh[k]))
goto release_mutex;

if (avail == 0) {
offset = 0;
put_bh(bh[k++]);
continue;
}

stream->next_in = bh[k]->b_data + offset;
stream->avail_in = avail;
offset = 0;
Expand Down

0 comments on commit 2f38cfe

Please sign in to comment.