diff options
author | Chris Ball <cjb@laptop.org> | 2009-04-27 13:29:03 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-04-27 13:40:51 +0200 |
commit | d6397baee468809ef311e763dfc6e9f73418f8a6 (patch) | |
tree | b8f20c01239674eea287c1665fbf96fb92dfcb00 /fs/xattr.c | |
parent | Btrfs: fix deadlocks and stalls on dead root removal (diff) | |
download | linux-d6397baee468809ef311e763dfc6e9f73418f8a6.tar.xz linux-d6397baee468809ef311e763dfc6e9f73418f8a6.zip |
Btrfs: When shrinking, only update disk size on success
Previously, we updated a device's size prior to attempting a shrink
operation. This patch moves the device resizing logic to only happen if
the shrink completes successfully. In the process, it introduces a new
field to btrfs_device -- disk_total_bytes -- to track the on-disk size.
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/xattr.c')
0 files changed, 0 insertions, 0 deletions