]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thp: consolidate assert checks in __split_huge_page()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 22 May 2014 00:42:48 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:48 +0000 (10:42 +1000)
commitb6390a7e01ed20a3864bdc4fc10a5d8347e97236
tree1f038c599b7f7070eb0e2c1c2b9e13f76602d32f
parentbd6c6a2ad055358fad5a05c455269caaa1a921ad
thp: consolidate assert checks in __split_huge_page()

It doesn't make sense to have two assert checks for each invariant: one
for printing and one for BUG().

Let's trigger BUG() if we print error message.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c