summaryrefslogtreecommitdiff
path: root/fs/btrfs/zoned.h
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-05-05 04:26:28 +0300
committerDavid Sterba <dsterba@suse.com>2021-06-21 16:19:05 +0300
commit50535db8fbf67d44522de5b79ddf66fb6d0c14a8 (patch)
treeddc5e055445ad57ec2da3f1216ee2b4ef8ded4e7 /fs/btrfs/zoned.h
parent1245835d24f1ea989a0cbcdf93ddea3dcbc3814f (diff)
downloadlinux-50535db8fbf67d44522de5b79ddf66fb6d0c14a8.tar.xz
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 <tiantao6@hisilicon.com> Reviewed-by: David Sterba <dsterba@suse.com> [ update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.h')
0 files changed, 0 insertions, 0 deletions