aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorBen Hutchings <[email protected]>2011-04-14 22:22:21 +0000
committerLinus Torvalds <[email protected]>2011-04-14 23:06:56 +0000
commite27e6151b154ff6e5e8162efa291bc60196d29ea (patch)
tree0dfef44a7e7e888ff6fe696058b40c458429ca75 /fs/jbd2/commit.c
parentramfs: fix memleak on no-mmu arch (diff)
downloadkernel-e27e6151b154ff6e5e8162efa291bc60196d29ea.tar.gz
kernel-e27e6151b154ff6e5e8162efa291bc60196d29ea.zip
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 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions