]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Use consistent variable names in truncate_pagecache(), truncate_setsize(),
authorHugh Dickins <hughd@google.com>
Sat, 16 Jul 2011 13:30:41 +0000 (23:30 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:04:38 +0000 (15:04 +1000)
commit6663787f4563ed2367911f535518cc897d18eb41
treecbe322cddea91cd01322e9ced42546b259826d67
parent1fcbae3fa3456c06b7d5bf0b3a7caa8a63d46221
Use consistent variable names in truncate_pagecache(), truncate_setsize(),
vmtruncate() and vmtruncate_range().

unmap_mapping_range() and vmtruncate_range() have mismatched interfaces:
don't change either, but make the vmtruncates more precise about what they
expect unmap_mapping_range() to do.

vmtruncate_range() is currently called only with page-aligned start and
end+1: can handle unaligned start, but unaligned end+1 would hit BUG_ON in
truncate_inode_pages_range() (lacks partial clearing of the end page).

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/truncate.c