On Wed, Jun 01, 2016 at 07:18:22PM +0800, Feifei Xu wrote: > Btrfs self-test module assumed that both sectorsize and PAGE_SIZE are 4K. > Thus many self-tests fail on non-4K page size systems, like ppc64. This > patchset enables self-tests to be executed on non-4k page size systems. > > This patchset enables us to easily add support for possible sectorsizes and > nodesizes (e.g. for future subpage-blocksize support). > > This patchset also fixes the following bugs in self-tests: > 1) Fix integer overflow when calculating bytes_per_bitmap > 2) Fix infinite loop when searching for free space > 3) Fix extent test_bitmaps fail on 64k sectorsize system > 4) Fix extent buffer bitmap test fail on big-endian system > > Also use macros instead of constants add add missing newline > when print strings in self-tests codes.
The whole patchset looks good to me, the fixes IMO qualify for 4.7 so I'll add it to for-next. I don't have a 64k page machine to do testing, so I'd apprecaite some external testing. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html