Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32930
b: refs/heads/master
c: 0e1dfc6
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 31, 2006
1 parent 00437ed commit 0a7e925
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a268cefebceeb2046dfdfa301f041c2468536852
refs/heads/master: 0e1dfc66b6ec94984a4778132147a8aa36461d58
7 changes: 6 additions & 1 deletion trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,18 @@ __find_get_block_slow(struct block_device *bdev, sector_t block)
pass does the actual I/O. */
void invalidate_bdev(struct block_device *bdev, int destroy_dirty_buffers)
{
struct address_space *mapping = bdev->bd_inode->i_mapping;

if (mapping->nrpages == 0)
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_inode_pages(bdev->bd_inode->i_mapping);
invalidate_inode_pages(mapping);
}

/*
Expand Down

0 comments on commit 0a7e925

Please sign in to comment.