Skip to content

Commit 8101c8d

Browse files
Josef Bacikmasoncl
authored andcommitted
Btrfs: disable snapshot aware defrag for now
It's just broken and it's taking a lot of effort to fix it, so for now just disable it so people can defrag in peace. Thanks, Cc: [email protected] Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
1 parent cf93da7 commit 8101c8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
26292629
EXTENT_DEFRAG, 1, cached_state);
26302630
if (ret) {
26312631
u64 last_snapshot = btrfs_root_last_snapshot(&root->root_item);
2632-
if (last_snapshot >= BTRFS_I(inode)->generation)
2632+
if (0 && last_snapshot >= BTRFS_I(inode)->generation)
26332633
/* the inode is shared */
26342634
new = record_old_file_extents(inode, ordered_extent);
26352635

0 commit comments

Comments
 (0)