Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233006
b: refs/heads/master
c: 5df6708
h: refs/heads/master
v: v3
  • Loading branch information
Tsutomu Itoh authored and Chris Mason committed Feb 1, 2011
1 parent d8d23a1 commit 60dc595
Show file tree
Hide file tree
Showing 4 changed files with 11 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: c87fb6fdcaf7560940b31a0c78c3e6370e3433cf
refs/heads/master: 5df67083488ccbad925f583b698ab38f8629a016
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -6496,6 +6496,8 @@ static noinline int relocate_inode_pages(struct inode *inode, u64 start,
int ret = 0;

ra = kzalloc(sizeof(*ra), GFP_NOFS);
if (!ra)
return -ENOMEM;

mutex_lock(&inode->i_mutex);
first_index = start >> PAGE_CACHE_SHIFT;
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,8 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree,
nr = bio_get_nr_vecs(bdev);

bio = btrfs_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH);
if (!bio)
return -ENOMEM;

bio_add_page(bio, page, page_size, offset);
bio->bi_end_io = end_io_func;
Expand Down
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/tree-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,13 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
log = root->log_root;

path = btrfs_alloc_path();
if (!path)
return -ENOMEM;
dst_path = btrfs_alloc_path();
if (!dst_path) {
btrfs_free_path(path);
return -ENOMEM;
}

min_key.objectid = inode->i_ino;
min_key.type = BTRFS_INODE_ITEM_KEY;
Expand Down

0 comments on commit 60dc595

Please sign in to comment.