diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-05-23 14:37:47 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-05-23 14:37:47 -0400 |
commit | d6c0cb379c5198487e4ac124728cbb2346d63b1f (patch) | |
tree | 167a97ac58c7a2fbf7c4e94b6abbfe1e03af014a /fs/btrfs/inode.c | |
parent | 8e531cdfeb75269c6c5aae33651cca39707848da (diff) | |
parent | 1f78160ce1b1b8e657e2248118c4d91f881763f0 (diff) |
Merge branch 'cleanups_and_fixes' into inode_numbers
Conflicts:
fs/btrfs/tree-log.c
fs/btrfs/volumes.c
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 4d8ef95abf40..d378f8b70ef7 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1323,7 +1323,7 @@ static int btrfs_set_bit_hook(struct inode *inode, | |||
1323 | 1323 | ||
1324 | /* | 1324 | /* |
1325 | * set_bit and clear bit hooks normally require _irqsave/restore | 1325 | * set_bit and clear bit hooks normally require _irqsave/restore |
1326 | * but in this case, we are only testeing for the DELALLOC | 1326 | * but in this case, we are only testing for the DELALLOC |
1327 | * bit, which is only set or cleared with irqs on | 1327 | * bit, which is only set or cleared with irqs on |
1328 | */ | 1328 | */ |
1329 | if (!(state->state & EXTENT_DELALLOC) && (*bits & EXTENT_DELALLOC)) { | 1329 | if (!(state->state & EXTENT_DELALLOC) && (*bits & EXTENT_DELALLOC)) { |
@@ -1356,7 +1356,7 @@ static int btrfs_clear_bit_hook(struct inode *inode, | |||
1356 | { | 1356 | { |
1357 | /* | 1357 | /* |
1358 | * set_bit and clear bit hooks normally require _irqsave/restore | 1358 | * set_bit and clear bit hooks normally require _irqsave/restore |
1359 | * but in this case, we are only testeing for the DELALLOC | 1359 | * but in this case, we are only testing for the DELALLOC |
1360 | * bit, which is only set or cleared with irqs on | 1360 | * bit, which is only set or cleared with irqs on |
1361 | */ | 1361 | */ |
1362 | if ((state->state & EXTENT_DELALLOC) && (*bits & EXTENT_DELALLOC)) { | 1362 | if ((state->state & EXTENT_DELALLOC) && (*bits & EXTENT_DELALLOC)) { |
@@ -3286,7 +3286,6 @@ search_again: | |||
3286 | btrfs_file_extent_calc_inline_size(size); | 3286 | btrfs_file_extent_calc_inline_size(size); |
3287 | ret = btrfs_truncate_item(trans, root, path, | 3287 | ret = btrfs_truncate_item(trans, root, path, |
3288 | size, 1); | 3288 | size, 1); |
3289 | BUG_ON(ret); | ||
3290 | } else if (root->ref_cows) { | 3289 | } else if (root->ref_cows) { |
3291 | inode_sub_bytes(inode, item_end + 1 - | 3290 | inode_sub_bytes(inode, item_end + 1 - |
3292 | found_key.offset); | 3291 | found_key.offset); |
@@ -7167,6 +7166,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry, | |||
7167 | datasize); | 7166 | datasize); |
7168 | if (err) { | 7167 | if (err) { |
7169 | drop_inode = 1; | 7168 | drop_inode = 1; |
7169 | btrfs_free_path(path); | ||
7170 | goto out_unlock; | 7170 | goto out_unlock; |
7171 | } | 7171 | } |
7172 | leaf = path->nodes[0]; | 7172 | leaf = path->nodes[0]; |