mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +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
|
@ -58,7 +58,7 @@ static sector_t max_block(struct block_device *bdev)
|
|||
/* Kill _all_ buffers, dirty or not.. */
|
||||
static void kill_bdev(struct block_device *bdev)
|
||||
{
|
||||
invalidate_bdev(bdev, 1);
|
||||
invalidate_bdev(bdev);
|
||||
truncate_inode_pages(bdev->bd_inode->i_mapping, 0);
|
||||
}
|
||||
|
||||
|
@ -1478,7 +1478,7 @@ int __invalidate_device(struct block_device *bdev)
|
|||
res = invalidate_inodes(sb);
|
||||
drop_super(sb);
|
||||
}
|
||||
invalidate_bdev(bdev, 0);
|
||||
invalidate_bdev(bdev);
|
||||
return res;
|
||||
}
|
||||
EXPORT_SYMBOL(__invalidate_device);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue