diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-05-22 12:33:42 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-05-22 12:33:42 -0400 |
commit | 945d8962ceee6bb273365d0bdf42f763225b290f (patch) | |
tree | 43f5617022c7c947c3c63664e49eb9575ab82f2f /fs/btrfs/delayed-inode.c | |
parent | 0d0ca30f180906224be6279788f2b202cfd959d8 (diff) | |
parent | 4ea028859bbdad34b84c9951fbb832ae10c6a96c (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/delayed-inode.c')
-rw-r--r-- | fs/btrfs/delayed-inode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index c25405f69360..01e29503a54b 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c | |||
@@ -813,7 +813,7 @@ do_again: | |||
813 | 813 | ||
814 | ret = btrfs_insert_delayed_item(trans, root, path, curr); | 814 | ret = btrfs_insert_delayed_item(trans, root, path, curr); |
815 | if (ret < 0) { | 815 | if (ret < 0) { |
816 | btrfs_release_path(root, path); | 816 | btrfs_release_path(path); |
817 | goto insert_end; | 817 | goto insert_end; |
818 | } | 818 | } |
819 | 819 | ||
@@ -827,7 +827,7 @@ do_again: | |||
827 | btrfs_release_delayed_item(prev); | 827 | btrfs_release_delayed_item(prev); |
828 | btrfs_mark_buffer_dirty(path->nodes[0]); | 828 | btrfs_mark_buffer_dirty(path->nodes[0]); |
829 | 829 | ||
830 | btrfs_release_path(root, path); | 830 | btrfs_release_path(path); |
831 | mutex_unlock(&node->mutex); | 831 | mutex_unlock(&node->mutex); |
832 | goto do_again; | 832 | goto do_again; |
833 | 833 | ||
@@ -925,7 +925,7 @@ do_again: | |||
925 | curr = __btrfs_next_delayed_item(prev); | 925 | curr = __btrfs_next_delayed_item(prev); |
926 | btrfs_release_delayed_item(prev); | 926 | btrfs_release_delayed_item(prev); |
927 | ret = 0; | 927 | ret = 0; |
928 | btrfs_release_path(root, path); | 928 | btrfs_release_path(path); |
929 | if (curr) | 929 | if (curr) |
930 | goto do_again; | 930 | goto do_again; |
931 | else | 931 | else |
@@ -933,12 +933,12 @@ do_again: | |||
933 | } | 933 | } |
934 | 934 | ||
935 | btrfs_batch_delete_items(trans, root, path, curr); | 935 | btrfs_batch_delete_items(trans, root, path, curr); |
936 | btrfs_release_path(root, path); | 936 | btrfs_release_path(path); |
937 | mutex_unlock(&node->mutex); | 937 | mutex_unlock(&node->mutex); |
938 | goto do_again; | 938 | goto do_again; |
939 | 939 | ||
940 | delete_fail: | 940 | delete_fail: |
941 | btrfs_release_path(root, path); | 941 | btrfs_release_path(path); |
942 | mutex_unlock(&node->mutex); | 942 | mutex_unlock(&node->mutex); |
943 | return ret; | 943 | return ret; |
944 | } | 944 | } |
@@ -982,7 +982,7 @@ static int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, | |||
982 | key.offset = 0; | 982 | key.offset = 0; |
983 | ret = btrfs_lookup_inode(trans, root, path, &key, 1); | 983 | ret = btrfs_lookup_inode(trans, root, path, &key, 1); |
984 | if (ret > 0) { | 984 | if (ret > 0) { |
985 | btrfs_release_path(root, path); | 985 | btrfs_release_path(path); |
986 | mutex_unlock(&node->mutex); | 986 | mutex_unlock(&node->mutex); |
987 | return -ENOENT; | 987 | return -ENOENT; |
988 | } else if (ret < 0) { | 988 | } else if (ret < 0) { |
@@ -997,7 +997,7 @@ static int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, | |||
997 | write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, | 997 | write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, |
998 | sizeof(struct btrfs_inode_item)); | 998 | sizeof(struct btrfs_inode_item)); |
999 | btrfs_mark_buffer_dirty(leaf); | 999 | btrfs_mark_buffer_dirty(leaf); |
1000 | btrfs_release_path(root, path); | 1000 | btrfs_release_path(path); |
1001 | 1001 | ||
1002 | btrfs_delayed_inode_release_metadata(root, node); | 1002 | btrfs_delayed_inode_release_metadata(root, node); |
1003 | btrfs_release_delayed_inode(node); | 1003 | btrfs_release_delayed_inode(node); |