aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2011-05-22 12:33:42 -0400
committerChris Mason <chris.mason@oracle.com>2011-05-22 12:33:42 -0400
commit945d8962ceee6bb273365d0bdf42f763225b290f (patch)
tree43f5617022c7c947c3c63664e49eb9575ab82f2f /fs/btrfs/file.c
parent0d0ca30f180906224be6279788f2b202cfd959d8 (diff)
parent4ea028859bbdad34b84c9951fbb832ae10c6a96c (diff)
Merge branch 'cleanups' of git://repo.or.cz/linux-2.6/btrfs-unstable into inode_numbers
Conflicts: fs/btrfs/extent-tree.c fs/btrfs/free-space-cache.c fs/btrfs/inode.c fs/btrfs/tree-log.c Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index bef020451525..58ddc4442159 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -191,9 +191,9 @@ int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end,
191 } 191 }
192 while (1) { 192 while (1) {
193 if (!split) 193 if (!split)
194 split = alloc_extent_map(GFP_NOFS); 194 split = alloc_extent_map();
195 if (!split2) 195 if (!split2)
196 split2 = alloc_extent_map(GFP_NOFS); 196 split2 = alloc_extent_map();
197 BUG_ON(!split || !split2); 197 BUG_ON(!split || !split2);
198 198
199 write_lock(&em_tree->lock); 199 write_lock(&em_tree->lock);
@@ -377,7 +377,7 @@ next_slot:
377 377
378 search_start = max(key.offset, start); 378 search_start = max(key.offset, start);
379 if (recow) { 379 if (recow) {
380 btrfs_release_path(root, path); 380 btrfs_release_path(path);
381 continue; 381 continue;
382 } 382 }
383 383
@@ -394,7 +394,7 @@ next_slot:
394 ret = btrfs_duplicate_item(trans, root, path, 394 ret = btrfs_duplicate_item(trans, root, path,
395 &new_key); 395 &new_key);
396 if (ret == -EAGAIN) { 396 if (ret == -EAGAIN) {
397 btrfs_release_path(root, path); 397 btrfs_release_path(path);
398 continue; 398 continue;
399 } 399 }
400 if (ret < 0) 400 if (ret < 0)
@@ -517,7 +517,7 @@ next_slot:
517 del_nr = 0; 517 del_nr = 0;
518 del_slot = 0; 518 del_slot = 0;
519 519
520 btrfs_release_path(root, path); 520 btrfs_release_path(path);
521 continue; 521 continue;
522 } 522 }
523 523
@@ -682,7 +682,7 @@ again:
682 new_key.offset = split; 682 new_key.offset = split;
683 ret = btrfs_duplicate_item(trans, root, path, &new_key); 683 ret = btrfs_duplicate_item(trans, root, path, &new_key);
684 if (ret == -EAGAIN) { 684 if (ret == -EAGAIN) {
685 btrfs_release_path(root, path); 685 btrfs_release_path(path);
686 goto again; 686 goto again;
687 } 687 }
688 BUG_ON(ret < 0); 688 BUG_ON(ret < 0);
@@ -722,7 +722,7 @@ again:
722 ino, bytenr, orig_offset, 722 ino, bytenr, orig_offset,
723 &other_start, &other_end)) { 723 &other_start, &other_end)) {
724 if (recow) { 724 if (recow) {
725 btrfs_release_path(root, path); 725 btrfs_release_path(path);
726 goto again; 726 goto again;
727 } 727 }
728 extent_end = other_end; 728 extent_end = other_end;
@@ -739,7 +739,7 @@ again:
739 ino, bytenr, orig_offset, 739 ino, bytenr, orig_offset,
740 &other_start, &other_end)) { 740 &other_start, &other_end)) {
741 if (recow) { 741 if (recow) {
742 btrfs_release_path(root, path); 742 btrfs_release_path(path);
743 goto again; 743 goto again;
744 } 744 }
745 key.offset = other_start; 745 key.offset = other_start;
@@ -1376,7 +1376,7 @@ static long btrfs_fallocate(struct file *file, int mode,
1376 while (1) { 1376 while (1) {
1377 em = btrfs_get_extent(inode, NULL, 0, cur_offset, 1377 em = btrfs_get_extent(inode, NULL, 0, cur_offset,
1378 alloc_end - cur_offset, 0); 1378 alloc_end - cur_offset, 0);
1379 BUG_ON(IS_ERR(em) || !em); 1379 BUG_ON(IS_ERR_OR_NULL(em));
1380 last_byte = min(extent_map_end(em), alloc_end); 1380 last_byte = min(extent_map_end(em), alloc_end);
1381 last_byte = (last_byte + mask) & ~mask; 1381 last_byte = (last_byte + mask) & ~mask;
1382 if (em->block_start == EXTENT_MAP_HOLE || 1382 if (em->block_start == EXTENT_MAP_HOLE ||