diff options
author | NeilBrown <neilb@suse.de> | 2010-10-27 08:16:40 +0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-10-28 10:36:11 +0400 |
commit | 2b193363ef68667ad717a6723165e0dccf99470f (patch) | |
tree | bd45d5186f0edf2b546c4503d794b479d126ad1f /drivers/md/bitmap.c | |
parent | 1c4588e9c19cae6209a28c9da2f16a18a610b935 (diff) | |
download | linux-2b193363ef68667ad717a6723165e0dccf99470f.tar.xz |
md: change type of first arg to sync_page_io.
Currently sync_page_io takes a 'bdev'.
Every caller passes 'rdev->bdev'.
We will soon want another field out of the rdev in sync_page_io,
So just pass the rdev instead of the bdev out of it.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 65d567373213..fdde0279755f 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -212,7 +212,7 @@ static struct page *read_sb_page(mddev_t *mddev, loff_t offset, target = rdev->sb_start + offset + index * (PAGE_SIZE/512); - if (sync_page_io(rdev->bdev, target, + if (sync_page_io(rdev, target, roundup(size, bdev_logical_block_size(rdev->bdev)), page, READ)) { page->index = index; |