Li Zefan
5ca496604b
Btrfs: fix wrong max_to_defrag in btrfs_defrag_file()
...
It's off-by-one, and thus we may skip the last page while defragmenting.
An example case:
# create /mnt/file with 2 4K file extents
# btrfs fi defrag /mnt/file
# sync
# filefrag /mnt/file
/mnt/file: 2 extents found
So it's not defragmented.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
2011-10-20 18:10:37 +02:00
..
2011-08-02 21:14:05 -10:00
2011-10-19 15:12:31 -04:00
2011-08-01 14:30:46 -04:00
2011-07-27 12:46:47 -04:00
2011-10-19 15:12:59 -04:00
2011-07-27 12:46:46 -04:00
2011-07-26 16:49:47 -07:00
2011-08-01 14:30:48 -04:00
2011-10-19 15:12:50 -04:00
2011-07-27 12:46:46 -04:00
2011-10-19 15:12:47 -04:00
2011-10-19 15:12:48 -04:00
2011-08-01 14:30:50 -04:00
2011-10-19 15:13:00 -04:00
2011-09-11 10:52:24 -04:00
2011-10-19 15:12:45 -04:00
2011-10-19 15:13:01 -04:00
2011-10-19 15:12:42 -04:00
2011-10-19 15:12:59 -04:00
2011-10-20 18:10:37 +02:00
2011-07-27 12:46:46 -04:00
2011-07-27 12:46:46 -04:00
2011-08-01 14:30:48 -04:00
2011-10-20 18:10:31 +02:00
2011-08-01 14:30:44 -04:00
2011-07-27 12:46:45 -04:00
2011-10-19 15:12:51 -04:00
2011-10-19 15:12:59 -04:00
2011-08-16 21:09:15 -04:00
2011-10-19 15:12:50 -04:00
2011-08-16 21:09:15 -04:00
2011-10-19 15:12:56 -04:00