lkml.org 
[lkml]   [2005]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] __find_get_block_slow() cleanup
Hello,

Get rid of the `int unused' parameter of __find_get_block_slow().


Coywolf

Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
---


--- 2.6.14-cy/fs/buffer.c~__find_get_block_slow-cleanup 2005-10-31 15:24:11.000000000 +0800
+++ 2.6.14-cy/fs/buffer.c 2005-11-03 17:58:54.000000000 +0800
@@ -396,7 +396,7 @@ asmlinkage long sys_fdatasync(unsigned i
* private_lock is contended then so is mapping->tree_lock).
*/
static struct buffer_head *
-__find_get_block_slow(struct block_device *bdev, sector_t block, int unused)
+__find_get_block_slow(struct block_device *bdev, sector_t block)
{
struct inode *bd_inode = bdev->bd_inode;
struct address_space *bd_mapping = bd_inode->i_mapping;
@@ -1438,7 +1438,7 @@ __find_get_block(struct block_device *bd
struct buffer_head *bh = lookup_bh_lru(bdev, block, size);

if (bh == NULL) {
- bh = __find_get_block_slow(bdev, block, size);
+ bh = __find_get_block_slow(bdev, block);
if (bh)
bh_lru_install(bh);
}
@@ -1694,7 +1694,7 @@ void unmap_underlying_metadata(struct bl

might_sleep();

- old_bh = __find_get_block_slow(bdev, block, 0);
+ old_bh = __find_get_block_slow(bdev, block);
if (old_bh) {
clear_buffer_dirty(old_bh);
wait_on_buffer(old_bh);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-11-03 11:13    [W:0.120 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site