hugetlbfs: fix quota leak
authorKen Chen <kenchen@google.com>
Mon, 14 Jan 2008 08:55:19 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 14 Jan 2008 16:52:23 +0000 (08:52 -0800)
commit68842c9b94560e647e8e7cc75cbb3dbe59f6fcb5
tree58220ff2840a62155d3e7f934bc39e4cea673b39
parent747d016e7e25e216b31022fe2b012508d99fb682
hugetlbfs: fix quota leak

In the error path of both shared and private hugetlb page allocation,
the file system quota is never undone, leading to fs quota leak.  Fix
them up.

[akpm@linux-foundation.org: cleanup, micro-optimise]
Signed-off-by: Ken Chen <kenchen@google.com>
Acked-by: Adam Litke <agl@us.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c