thp: improve the error code path
authorShaohua Li <[email protected]>
Fri, 13 Jan 2012 01:19:11 +0000 (17:19 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Jan 2012 04:13:08 +0000 (20:13 -0800)
commit569e55900a5c3c30de6e25c3f259ae7c7dbadb96
tree66bfd4d2ea26f1b9d77580d5397a07552a62e4fd
parent0efc8eb9c6a177836dac88b2cbb8815f9e4f8d5a
thp: improve the error code path

Improve the error code path.  Delete unnecessary sysfs file for example.
Also remove the #ifdef xxx to make code better.

Signed-off-by: Shaohua Li <[email protected]>
Reviewed-by: Andrea Arcangeli <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/huge_memory.c