diff options
author | Shaohua Li <shli@fb.com> | 2016-01-23 00:40:02 (GMT) |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-01-25 02:13:37 (GMT) |
commit | fc2561ec0afcd89e2ec6f28a82a9219582844964 (patch) | |
tree | 25b861553f52c1a975016951cd8cffebc6953718 | |
parent | 4ac7a65f8070098187b1e2afa992848366aae079 (diff) | |
download | linux-fc2561ec0afcd89e2ec6f28a82a9219582844964.tar.xz |
md-cluster: delete useless code
page->index already considers node offset. The node_offset calculation
in write_sb_page is useless and confusion.
Cc: Goldwyn Rodrigues <rgoldwyn@suse.com>
Cc: NeilBrown <neilb@suse.com>
Acked-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
-rw-r--r-- | drivers/md/bitmap.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 4f22e91..d80cce4 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -210,10 +210,6 @@ static int write_sb_page(struct bitmap *bitmap, struct page *page, int wait) struct block_device *bdev; struct mddev *mddev = bitmap->mddev; struct bitmap_storage *store = &bitmap->storage; - int node_offset = 0; - - if (mddev_is_clustered(bitmap->mddev)) - node_offset = bitmap->cluster_slot * store->file_pages; while ((rdev = next_active_rdev(rdev, mddev)) != NULL) { int size = PAGE_SIZE; |