Re: [PATCH 1/4] Btrfs: fix defragmentation regression

2011-10-18 Thread Dan Merillat
On Fri, Sep 2, 2011 at 4:42 AM, Christoph Hellwig h...@infradead.org wrote: On Fri, Sep 02, 2011 at 03:56:25PM +0800, Li Zefan wrote: There's an off-by-one bug:   # create a file with lots of 4K file extents   # btrfs fi defrag /mnt/file   # sync   # filefrag -v /mnt/file   Filesystem type

Re: [PATCH 1/4] Btrfs: fix defragmentation regression

2011-10-18 Thread Li Zefan
16:48, Dan Merillat wrote: On Fri, Sep 2, 2011 at 4:42 AM, Christoph Hellwig h...@infradead.org wrote: On Fri, Sep 02, 2011 at 03:56:25PM +0800, Li Zefan wrote: There's an off-by-one bug: # create a file with lots of 4K file extents # btrfs fi defrag /mnt/file # sync # filefrag -v

[PATCH 1/4] Btrfs: fix defragmentation regression

2011-09-02 Thread Li Zefan
There's an off-by-one bug: # create a file with lots of 4K file extents # btrfs fi defrag /mnt/file # sync # filefrag -v /mnt/file Filesystem type is: 9123683e File size of /mnt/file is 1228800 (300 blocks, blocksize 4096) ext logical physical expected length flags 0 0

Re: [PATCH 1/4] Btrfs: fix defragmentation regression

2011-09-02 Thread Christoph Hellwig
On Fri, Sep 02, 2011 at 03:56:25PM +0800, Li Zefan wrote: There's an off-by-one bug: # create a file with lots of 4K file extents # btrfs fi defrag /mnt/file # sync # filefrag -v /mnt/file Filesystem type is: 9123683e File size of /mnt/file is 1228800 (300 blocks, blocksize