projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
md: use __bio_add_page to add single page
[linux-block.git]
/
drivers
/
md
/
md-bitmap.c
diff --git
a/drivers/md/md-bitmap.c
b/drivers/md/md-bitmap.c
index 920bb68156d276789f5739a403490e63c83f1e76..bc8d7565171d44f3027186fbf5a7b05714e49bda 100644
(file)
--- a/
drivers/md/md-bitmap.c
+++ b/
drivers/md/md-bitmap.c
@@
-219,7
+219,7
@@
static unsigned int optimal_io_size(struct block_device *bdev,
}
static unsigned int bitmap_io_size(unsigned int io_size, unsigned int opt_size,
}
static unsigned int bitmap_io_size(unsigned int io_size, unsigned int opt_size,
-
sector_t start, sector
_t boundary)
+
loff_t start, loff
_t boundary)
{
if (io_size != opt_size &&
start + opt_size / SECTOR_SIZE <= boundary)
{
if (io_size != opt_size &&
start + opt_size / SECTOR_SIZE <= boundary)
@@
-237,8
+237,8
@@
static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap,
struct block_device *bdev;
struct mddev *mddev = bitmap->mddev;
struct bitmap_storage *store = &bitmap->storage;
struct block_device *bdev;
struct mddev *mddev = bitmap->mddev;
struct bitmap_storage *store = &bitmap->storage;
-
sector_t
offset = mddev->bitmap_info.offset;
- sector_t ps,
sboff,
doff;
+
loff_t sboff,
offset = mddev->bitmap_info.offset;
+ sector_t ps, doff;
unsigned int size = PAGE_SIZE;
unsigned int opt_size = PAGE_SIZE;
unsigned int size = PAGE_SIZE;
unsigned int opt_size = PAGE_SIZE;