aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 6834be4c8709..0b06a5ca8afc 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1066,7 +1066,7 @@ int btrfs_defrag_file(struct inode *inode, struct file *file,
1066 i = range->start >> PAGE_CACHE_SHIFT; 1066 i = range->start >> PAGE_CACHE_SHIFT;
1067 } 1067 }
1068 if (!max_to_defrag) 1068 if (!max_to_defrag)
1069 max_to_defrag = last_index; 1069 max_to_defrag = last_index + 1;
1070 1070
1071 /* 1071 /*
1072 * make writeback starts from i, so the defrag range can be 1072 * make writeback starts from i, so the defrag range can be