From: Peter Zijlstra Date: Sun, 6 May 2007 21:49:55 +0000 (-0700) Subject: mm: optimize acorn partition truncate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96018fdacbfcaf6a0694d066b525f67c24025688;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm: optimize acorn partition truncate invalidate_bdev() is superfluous when truncate_inode_pages() is also called. do call invalidate_bh_lrus() though, to avoid stale pointers. Signed-off-by: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/partitions/acorn.c b/fs/partitions/acorn.c index 9a6826c63818..e3491328596b 100644 --- a/fs/partitions/acorn.c +++ b/fs/partitions/acorn.c @@ -271,7 +271,7 @@ adfspart_check_ADFS(struct parsed_partitions *state, struct block_device *bdev) extern void xd_set_geometry(struct block_device *, unsigned char, unsigned char, unsigned int); xd_set_geometry(bdev, dr->secspertrack, heads, 1); - invalidate_bdev(bdev); + invalidate_bh_lrus(); truncate_inode_pages(bdev->bd_inode->i_mapping, 0); } #endif