Files
android_kernel_xiaomi_sm8450/fs/btrfs
David Sterba 210549ebe9 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>
2013-02-20 12:59:51 -05:00
..
2012-12-17 14:48:21 -05:00
2012-05-29 23:28:33 -04:00
2008-09-25 11:04:06 -04:00
2013-02-20 12:59:09 -05:00
2012-10-09 09:14:45 -04:00
2012-10-09 09:14:45 -04:00
2013-02-20 12:59:48 -05:00
2013-02-20 09:37:17 -05:00
2013-02-20 09:36:43 -05:00
2011-06-17 14:54:18 -04:00
2012-10-01 15:18:53 -04:00
2012-10-01 15:18:53 -04:00
2012-10-09 09:19:57 -04:00