]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_alloc.c
xfs: kill __KERNEL__ check for debug code in allocation code
authorDave Chinner <dchinner@redhat.com>
Wed, 4 Sep 2013 22:05:40 +0000 (22:05 +0000)
committerRich Johnston <rjohnston@sgi.com>
Mon, 16 Sep 2013 20:14:45 +0000 (15:14 -0500)
commit6beba453a386fa9496588661c2f2ac2e46bc427c
treec1317e3ddfd97165e54feb1bf6ac70b18703b643
parente334fb793b1f4aedf04926f17ee0179f48e55315
xfs: kill __KERNEL__ check for debug code in allocation code

Userspace running debug builds is relatively rare, so there's need
to special case the allocation algorithm code coverage debug switch.
As it is, userspace defines random numbers to 0, so  invert the
logic of the switch so it is effectively a no-op in userspace.
This kills another couple of __KERNEL__ users.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
libxfs/xfs_alloc.c