aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorplougher <plougher>2009-01-31 07:30:46 +0000
committerMohamad Ayyash <mkayyash@google.com>2015-02-23 12:34:11 -0800
commitc096b845d6afd4fc37962017b4b4fe5a69c2e71f (patch)
tree02ab57fc2afa3c19709d7e3ab2e27e085b795fb9 /kernel
parente5d56679a8f550513b2e8535e470af87d2679b82 (diff)
downloadsquashfs-tools-c096b845d6afd4fc37962017b4b4fe5a69c2e71f.tar.gz
Replace brelse with put_bh
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fs/squashfs/block.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/fs/squashfs/block.c b/kernel/fs/squashfs/block.c
index d19ea0f..9f7ddac 100644
--- a/kernel/fs/squashfs/block.c
+++ b/kernel/fs/squashfs/block.c
@@ -55,7 +55,7 @@ static struct buffer_head *get_block_length(struct super_block *sb,
if (msblk->devblksize - *offset == 1) {
*length = (unsigned char) bh->b_data[*offset];
- brelse(bh);
+ put_bh(bh);
bh = sb_bread(sb, ++(*cur_index));
if (bh == NULL)
return NULL;
@@ -175,7 +175,7 @@ int squashfs_read_data(struct super_block *sb, void **buffer, long long index,
if (avail == 0) {
offset = 0;
- brelse(bh[k++]);
+ put_bh(bh[k++]);
continue;
}
@@ -204,7 +204,7 @@ int squashfs_read_data(struct super_block *sb, void **buffer, long long index,
zlib_err = zlib_inflate(&msblk->stream, Z_NO_FLUSH);
if (msblk->stream.avail_in == 0 && k < b)
- brelse(bh[k++]);
+ put_bh(bh[k++]);
} while (zlib_err == Z_OK);
if (zlib_err != Z_STREAM_END) {
@@ -251,7 +251,7 @@ int squashfs_read_data(struct super_block *sb, void **buffer, long long index,
offset += avail;
}
offset = 0;
- brelse(bh[k]);
+ put_bh(bh[k]);
}
}
@@ -263,7 +263,7 @@ release_mutex:
block_release:
for (; k < b; k++)
- brelse(bh[k]);
+ put_bh(bh[k]);
read_failure:
ERROR("sb_bread failed reading block 0x%llx\n", cur_index);