diff options
author | David Sterba <dsterba@suse.cz> | 2013-02-10 00:38:06 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-20 18:59:51 +0100 |
commit | 210549ebe9047ae5a8cc47487203d3ee16a7749b (patch) | |
tree | 57c9c8123a46a1170abba0fc476ded82eac442ed /fs/btrfs/extent_io.h | |
parent | btrfs: put some enospc messages under enospc_debug (diff) | |
download | linux-210549ebe9047ae5a8cc47487203d3ee16a7749b.tar.xz linux-210549ebe9047ae5a8cc47487203d3ee16a7749b.zip |
btrfs: add cancellation points to defrag
The defrag operation can take very long, we want to have a way how to
cancel it. The code checks for a pending signal at safe points in the
defrag loops and returns EAGAIN. This means a user can press ^C after
running 'btrfs fi defrag', woks for both defrag modes, files and root.
Returning from the command was instant in my light tests, but may take
longer depending on the aging factor of the filesystem.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
0 files changed, 0 insertions, 0 deletions