mm: optimize acorn partition truncate
authorPeter Zijlstra <[email protected]>
Sun, 6 May 2007 21:49:55 +0000 (14:49 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 May 2007 19:12:55 +0000 (12:12 -0700)
commit96018fdacbfcaf6a0694d066b525f67c24025688
tree074c841a3dfd3fbe5caecf152da58816f1fd54e9
parentf9a14399aea13830d8af6798a53207bb0a900945
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/partitions/acorn.c