projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Btrfs: add missing free_extent_buffer
[deliverable/linux.git]
/
fs
/
btrfs
/
file-item.c
diff --git
a/fs/btrfs/file-item.c
b/fs/btrfs/file-item.c
index 84a2d1868271b86b1f6a771bf5cf734a8e45c3dc..58ece6558430094969d7dcea7e477f6949c2eac6 100644
(file)
--- a/
fs/btrfs/file-item.c
+++ b/
fs/btrfs/file-item.c
@@
-185,8
+185,8
@@
static int __btrfs_lookup_bio_sums(struct btrfs_root *root,
nblocks = bio->bi_iter.bi_size >> inode->i_sb->s_blocksize_bits;
if (!dst) {
if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) {
nblocks = bio->bi_iter.bi_size >> inode->i_sb->s_blocksize_bits;
if (!dst) {
if (nblocks * csum_size > BTRFS_BIO_INLINE_CSUM_SIZE) {
- btrfs_bio->csum_allocated = kmalloc
(nblocks * csum_size
,
-
GFP_NOFS);
+ btrfs_bio->csum_allocated = kmalloc
_array(nblocks
,
+
csum_size,
GFP_NOFS);
if (!btrfs_bio->csum_allocated) {
btrfs_free_path(path);
return -ENOMEM;
if (!btrfs_bio->csum_allocated) {
btrfs_free_path(path);
return -ENOMEM;
@@
-553,7
+553,7
@@
static noinline void truncate_one_csum(struct btrfs_root *root,
btrfs_truncate_item(root, path, new_size, 0);
key->offset = end_byte;
btrfs_truncate_item(root, path, new_size, 0);
key->offset = end_byte;
- btrfs_set_item_key_safe(root, path, key);
+ btrfs_set_item_key_safe(root
->fs_info
, path, key);
} else {
BUG();
}
} else {
BUG();
}
This page took
0.034862 seconds
and
5
git commands to generate.