Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346654
b: refs/heads/master
c: 0253f40
h: refs/heads/master
v: v3
  • Loading branch information
jeff.liu authored and Josef Bacik committed Dec 12, 2012
1 parent bcbbf04 commit aa0f593
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9afab8820bb8b55af669b199597d6716e04d1ba8
refs/heads/master: 0253f40ef9a709a1af39ce38b1d998af090f8127
2 changes: 1 addition & 1 deletion trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root,
btrfs_commit_transaction(trans, root);
} else if (new_size < old_size) {
ret = btrfs_shrink_device(device, new_size);
}
} /* equal, nothing need to do */

out_free:
kfree(vol_args);
Expand Down
3 changes: 0 additions & 3 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3059,9 +3059,6 @@ int btrfs_shrink_device(struct btrfs_device *device, u64 new_size)
u64 old_size = device->total_bytes;
u64 diff = device->total_bytes - new_size;

if (new_size >= device->total_bytes)
return -EINVAL;

path = btrfs_alloc_path();
if (!path)
return -ENOMEM;
Expand Down

0 comments on commit aa0f593

Please sign in to comment.