linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/8] Btrfs: self-tests: Support non-4k page size
@ 2016-06-01 15:51 Feifei Xu
  2016-06-01 15:51 ` [PATCH V2 1/8] Btrfs: test_check_exists: Fix infinite loop when searching for free space entries Feifei Xu
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Feifei Xu @ 2016-06-01 15:51 UTC (permalink / raw)
  To: linux-btrfs
  Cc: steve.capper, chandan, jbacik, dsterba, chandan, feifeixu.sh,
	Feifei Xu

Hi,

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.

-----
V1->V2:
  1) use rb_next(&tmp->offset_index)/rb_prev(&tmp->offset_index) instead
     of doing the info = tmp thing. As suggested by Josef Bacik.

  2) Separate V1 patch "[PATCH 3/5] Btrfs: self-tests: Support non-4k 
     page size" to following  patches in V2.
	- [PATCH V2 3/8] Btrfs: self-tests: Support non-4k page size
	- [PATCH V2 4/8] Btrfs: self-tests: Execute page straddling
		test only when nodesize < PAGE_SIZE
	- [PATCH V2 5/8] Btrfs: self-tests: Support testing all
		possible sectorsizes and nodesizes
	- [PATCH V2 6/8] Btrfs: self-tests: Use macros instead of
		constants and add missing newline
     As suggested by David Sterba that separate all change that are not
     related to hardcoded 4096/sectorsize/PAGE_SIZE.

  3) fix some coding style issue
-----
Feifei Xu (8):
  Btrfs: test_check_exists: Fix infinite loop when searching for free
    space entries
  Btrfs: Fix integer overflow when calculating bytes_per_bitmap
  Btrfs: self-tests: Support non-4k page size
  Btrfs: self-tests: Execute page straddling test only when nodesize <
    PAGE_SIZE
  Btrfs: self-tests: Support testing all possible sectorsizes and
    nodesizes
  Btrfs: self-tests: Use macros instead of constants and add missing
    newline
  Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize
  Btrfs: self-tests: Fix extent buffer bitmap test fail on BE system

 fs/btrfs/ctree.c                       |   6 +-
 fs/btrfs/disk-io.c                     |   9 +-
 fs/btrfs/disk-io.h                     |   2 +-
 fs/btrfs/extent_io.c                   |  10 +-
 fs/btrfs/extent_io.h                   |   4 +-
 fs/btrfs/free-space-cache.c            |  18 +-
 fs/btrfs/super.c                       |  52 +++--
 fs/btrfs/tests/btrfs-tests.c           |   6 +-
 fs/btrfs/tests/btrfs-tests.h           |  27 +--
 fs/btrfs/tests/extent-buffer-tests.c   |  13 +-
 fs/btrfs/tests/extent-io-tests.c       |  86 ++++++---
 fs/btrfs/tests/free-space-tests.c      |  76 +++++---
 fs/btrfs/tests/free-space-tree-tests.c |  30 +--
 fs/btrfs/tests/inode-tests.c           | 344 ++++++++++++++++++---------------
 fs/btrfs/tests/qgroup-tests.c          | 111 ++++++-----
 15 files changed, 454 insertions(+), 340 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH V2 0/8] Btrfs: self-tests: Support non-4k page size
@ 2016-06-01 11:18 Feifei Xu
  2016-06-01 11:18 ` [PATCH V2 2/8] Btrfs: Fix integer overflow when calculating bytes_per_bitmap Feifei Xu
  0 siblings, 1 reply; 12+ messages in thread
From: Feifei Xu @ 2016-06-01 11:18 UTC (permalink / raw)
  To: linux-btrfs
  Cc: steve.capper, chandan, jbacik, dsterba, chandan, feifeixu.sh,
	Feifei Xu

Hi,

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.

-----
V1->V2:
  1) use rb_next(&tmp->offset_index)/rb_prev(&tmp->offset_index) instead
     of doing the info = tmp thing. As suggested by Josef Bacik.

  2) Separate V1 patch "[PATCH 3/5] Btrfs: self-tests: Support non-4k 
     page size" to following  patches in V2.
	- [PATCH V2 3/8] Btrfs: self-tests: Support non-4k page size
	- [PATCH V2 4/8] Btrfs: self-tests: Execute page straddling
		test only when nodesize < PAGE_SIZE
	- [PATCH V2 5/8] Btrfs: self-tests: Support testing all
		possible sectorsizes and nodesizes
	- [PATCH V2 6/8] Btrfs: self-tests: Use macros instead of
		constants and add missing newline
     As suggested by David Sterba that separate all change that are not
     related to hardcoded 4096/sectorsize/PAGE_SIZE.

  3) fix some coding style issue
-----
Feifei Xu (8):
  Btrfs: test_check_exists: Fix infinite loop when searching for free
    space entries
  Btrfs: Fix integer overflow when calculating bytes_per_bitmap
  Btrfs: self-tests: Support non-4k page size
  Btrfs: self-tests: Execute page straddling test only when nodesize <
    PAGE_SIZE
  Btrfs: self-tests: Support testing all possible sectorsizes and
    nodesizes
  Btrfs: self-tests: Use macros instead of constants and add missing
    newline
  Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize
  Btrfs: self-tests: Fix extent buffer bitmap test fail on BE system

 fs/btrfs/ctree.c                       |   6 +-
 fs/btrfs/disk-io.c                     |   9 +-
 fs/btrfs/disk-io.h                     |   2 +-
 fs/btrfs/extent_io.c                   |  10 +-
 fs/btrfs/extent_io.h                   |   4 +-
 fs/btrfs/free-space-cache.c            |  18 +-
 fs/btrfs/super.c                       |  52 +++--
 fs/btrfs/tests/btrfs-tests.c           |   6 +-
 fs/btrfs/tests/btrfs-tests.h           |  27 +--
 fs/btrfs/tests/extent-buffer-tests.c   |  13 +-
 fs/btrfs/tests/extent-io-tests.c       |  86 ++++++---
 fs/btrfs/tests/free-space-tests.c      |  76 +++++---
 fs/btrfs/tests/free-space-tree-tests.c |  30 +--
 fs/btrfs/tests/inode-tests.c           | 344 ++++++++++++++++++---------------
 fs/btrfs/tests/qgroup-tests.c          | 111 ++++++-----
 15 files changed, 454 insertions(+), 340 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-06-01 17:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-01 15:51 [PATCH V2 0/8] Btrfs: self-tests: Support non-4k page size Feifei Xu
2016-06-01 15:51 ` [PATCH V2 1/8] Btrfs: test_check_exists: Fix infinite loop when searching for free space entries Feifei Xu
2016-06-01 15:51 ` [PATCH V2 2/8] Btrfs: Fix integer overflow when calculating bytes_per_bitmap Feifei Xu
2016-06-01 15:51 ` [PATCH V2 3/8] Btrfs: self-tests: Support non-4k page size Feifei Xu
2016-06-01 15:51 ` [PATCH V2 4/8] Btrfs: self-tests: Execute page straddling test only when nodesize < PAGE_SIZE Feifei Xu
2016-06-01 15:51 ` [PATCH V2 5/8] Btrfs: self-tests: Support testing all possible sectorsizes and nodesizes Feifei Xu
2016-06-01 15:51 ` [PATCH V2 6/8] Btrfs: self-tests: Use macros instead of constants and add missing newline Feifei Xu
2016-06-01 15:51 ` [PATCH V2 7/8] Btrfs: self-tests: Fix test_bitmaps fail on 64k sectorsize Feifei Xu
2016-06-01 15:51 ` [PATCH V2 8/8] Btrfs: self-tests: Fix extent buffer bitmap test fail on BE system Feifei Xu
2016-06-01 15:56 ` [PATCH V2 0/8] Btrfs: self-tests: Support non-4k page size Feifei Xu
2016-06-01 17:13 ` Josef Bacik
  -- strict thread matches above, loose matches on Subject: below --
2016-06-01 11:18 Feifei Xu
2016-06-01 11:18 ` [PATCH V2 2/8] Btrfs: Fix integer overflow when calculating bytes_per_bitmap Feifei Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).