]> Git Repo - linux.git/commit
mm/thp: use conventional format for boolean attributes
authorBen Hutchings <[email protected]>
Thu, 14 Apr 2011 22:22:21 +0000 (15:22 -0700)
committerLinus Torvalds <[email protected]>
Thu, 14 Apr 2011 23:06:56 +0000 (16:06 -0700)
commite27e6151b154ff6e5e8162efa291bc60196d29ea
tree0dfef44a7e7e888ff6fe696058b40c458429ca75
parentb836aec53e2bce71de1d5415313380688c851477
mm/thp: use conventional format for boolean attributes

The conventional format for boolean attributes in sysfs is numeric ("0" or
"1" followed by new-line).  Any boolean attribute can then be read and
written using a generic function.  Using the strings "yes [no]", "[yes]
no" (read), "yes" and "no" (write) will frustrate this.

[[email protected]: use kstrtoul()]
[[email protected]: test_bit() doesn't return 1/0, per Neil]
Signed-off-by: Ben Hutchings <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Hugh Dickins <[email protected]>
Tested-by: David Rientjes <[email protected]>
Cc: NeilBrown <[email protected]>
Cc: <[email protected]> [2.6.38.x]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/huge_memory.c
This page took 0.053614 seconds and 4 git commands to generate.