]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
clean up vmtruncate
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Feb 2008 06:28:56 +0000 (22:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:16 +0000 (09:44 -0800)
commit61d5048f149572434daee0cce5e1374a8a7cf3e8
tree97ac9c25bc44a58145a750a99887195df31cbe40
parent1b1b32f2c6f6bb32535d2da62075b51c980880eb
clean up vmtruncate

vmtruncate is a twisted maze of gotos, this patch cleans it up to have a
proper if else for the two major cases of extending and truncating truncate
and thus makes it a lot more readable while keeping exactly the same
functinality.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c