mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
mm: remove destroy_dirty_buffers from invalidate_bdev()
Remove the destroy_dirty_buffers argument from invalidate_bdev(), it hasn't been used in 6 years (so akpm says). find * -name \*.[ch] | xargs grep -l invalidate_bdev | while read file; do quilt add $file; sed -ie 's/invalidate_bdev(\([^,]*\),[^)]*)/invalidate_bdev(\1)/g' $file; done 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
0a27a14a62
commit
f98393a64c
13 changed files with 20 additions and 25 deletions
|
@ -333,7 +333,7 @@ out:
|
|||
we think the disk contains more recent information than the buffercache.
|
||||
The update == 1 pass marks the buffers we need to update, the update == 2
|
||||
pass does the actual I/O. */
|
||||
void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers)
|
||||
void invalidate_bdev(struct block_device *bdev)
|
||||
{
|
||||
struct address_space *mapping = bdev->bd_inode->i_mapping;
|
||||
|
||||
|
@ -341,11 +341,6 @@ void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers)
|
|||
return;
|
||||
|
||||
invalidate_bh_lrus();
|
||||
/*
|
||||
* FIXME: what about destroy_dirty_buffers?
|
||||
* We really want to use invalidate_inode_pages2() for
|
||||
* that, but not until that's cleaned up.
|
||||
*/
|
||||
invalidate_mapping_pages(mapping, 0, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue