mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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 <a.p.zijlstra@chello.nl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
f9a14399ae
commit
96018fdacb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue