diff options
author | Ben Hutchings <[email protected]> | 2011-04-14 15:22:21 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-04-14 16:06:56 -0700 |
commit | e27e6151b154ff6e5e8162efa291bc60196d29ea (patch) | |
tree | 0dfef44a7e7e888ff6fe696058b40c458429ca75 /lib/cpu-notifier-error-inject.c | |
parent | b836aec53e2bce71de1d5415313380688c851477 (diff) |
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]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions