diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-07 22:51:47 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-07 22:51:47 -0500 |
commit | 6b995751c2e851d2bc9c277b5884d0adb519e31d (patch) | |
tree | 7a15b41b5d8ce612915584a0773c670d5c0ab5b8 /fs/buffer.c | |
parent | 6c2f4267833f453156f8f439cc32eb4c92f357b4 (diff) | |
parent | d27ba47e7e8c466c18983a1779d611f82d6a354f (diff) |
Merge branch 'master'
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 35fa34977e81..5287be18633b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -396,7 +396,7 @@ asmlinkage long sys_fdatasync(unsigned int fd) | |||
396 | * private_lock is contended then so is mapping->tree_lock). | 396 | * private_lock is contended then so is mapping->tree_lock). |
397 | */ | 397 | */ |
398 | static struct buffer_head * | 398 | static struct buffer_head * |
399 | __find_get_block_slow(struct block_device *bdev, sector_t block, int unused) | 399 | __find_get_block_slow(struct block_device *bdev, sector_t block) |
400 | { | 400 | { |
401 | struct inode *bd_inode = bdev->bd_inode; | 401 | struct inode *bd_inode = bdev->bd_inode; |
402 | struct address_space *bd_mapping = bd_inode->i_mapping; | 402 | struct address_space *bd_mapping = bd_inode->i_mapping; |
@@ -1438,7 +1438,7 @@ __find_get_block(struct block_device *bdev, sector_t block, int size) | |||
1438 | struct buffer_head *bh = lookup_bh_lru(bdev, block, size); | 1438 | struct buffer_head *bh = lookup_bh_lru(bdev, block, size); |
1439 | 1439 | ||
1440 | if (bh == NULL) { | 1440 | if (bh == NULL) { |
1441 | bh = __find_get_block_slow(bdev, block, size); | 1441 | bh = __find_get_block_slow(bdev, block); |
1442 | if (bh) | 1442 | if (bh) |
1443 | bh_lru_install(bh); | 1443 | bh_lru_install(bh); |
1444 | } | 1444 | } |
@@ -1705,7 +1705,7 @@ void unmap_underlying_metadata(struct block_device *bdev, sector_t block) | |||
1705 | 1705 | ||
1706 | might_sleep(); | 1706 | might_sleep(); |
1707 | 1707 | ||
1708 | old_bh = __find_get_block_slow(bdev, block, 0); | 1708 | old_bh = __find_get_block_slow(bdev, block); |
1709 | if (old_bh) { | 1709 | if (old_bh) { |
1710 | clear_buffer_dirty(old_bh); | 1710 | clear_buffer_dirty(old_bh); |
1711 | wait_on_buffer(old_bh); | 1711 | wait_on_buffer(old_bh); |