diff options
author | Coywolf Qi Hunt <qiyong@fc-cn.com> | 2005-11-07 03:59:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:39 -0500 |
commit | 385fd4c59d8bf7895ad3641c4cea615346f684ed (patch) | |
tree | 3c230888a83dfe239dc32f1adfde9fb2787cd144 | |
parent | 53b27584db0446e356c86b3aa43f5107b0170704 (diff) |
[PATCH] __find_get_block_slow() cleanup
Get rid of the `int unused' parameter of __find_get_block_slow().
Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-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); |