summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2013-10-29 03:45:05 +0100
committerChris Mason <chris.mason@fusionio.com>2013-11-12 04:11:00 +0100
commit6f519564d7d978c00351d9ab6abac3deeac31621 (patch)
treead6219309aee3a44248fb7f7eb9756fc76423d79 /fs/btrfs/dev-replace.c
parentBtrfs: log recovery, don't unlink inode always on error (diff)
downloadlinux-6f519564d7d978c00351d9ab6abac3deeac31621.tar.xz
linux-6f519564d7d978c00351d9ab6abac3deeac31621.zip
Btrfs: do not run snapshot-aware defragment on error
If something wrong happens in write endio, running snapshot-aware defragment can end up with undefined results, maybe a crash, so we should avoid it. In order to share similar code, this also adds a helper to free the struct for snapshot-aware defrag. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions