public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] __find_get_block_slow() cleanup
@ 2005-11-03 10:08 Coywolf Qi Hunt
  0 siblings, 0 replies; only message in thread
From: Coywolf Qi Hunt @ 2005-11-03 10:08 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-03 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 10:08 [patch] __find_get_block_slow() cleanup Coywolf Qi Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox