aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorTian Tao <[email protected]>2021-05-05 09:26:28 +0800
committerDavid Sterba <[email protected]>2021-06-21 15:19:05 +0200
commit50535db8fbf67d44522de5b79ddf66fb6d0c14a8 (patch)
treeddc5e055445ad57ec2da3f1216ee2b4ef8ded4e7 /fs/btrfs/dev-replace.c
parent1245835d24f1ea989a0cbcdf93ddea3dcbc3814f (diff)
btrfs: return EAGAIN if defrag is canceled
When inode defrag is canceled, the error is set to EAGAIN but then overwritten by number of defragmented bytes. As this would hide the error, rather return EAGAIN. This does not harm 'btrfs fi defrag', it will print the error and continue to next file (as it does in for any other error). Signed-off-by: Tian Tao <[email protected]> Reviewed-by: David Sterba <[email protected]> [ update changelog ] Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions