From: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
To: dm-devel@redhat.com, agk@redhat.com
Cc: linux-kernel@vger.kernel.org, kusumi.tomohiro@jp.fujitsu.com
Subject: [PATCH] fix hard-coded disk header chunk size for persistent snapshot
Date: Wed, 12 May 2010 10:29:22 +0900 [thread overview]
Message-ID: <4BEA0472.1060300@jp.fujitsu.com> (raw)
Hi,
This patch fixes hard-coded value for the size of a chunk that includes
disk header for persistent snapshot. It should be changed to existing
macro NUM_SNAPSHOT_HDR_CHUNKS instead of using hard-coded value 1.
Thanks,
Tomohiro Kusumi
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
---
diff -aNur linux-2.6.34-rc7.org/drivers/md/dm-snap-persistent.c linux-2.6.34-rc7/drivers/md/dm-snap-persistent.c
--- linux-2.6.34-rc7.org/drivers/md/dm-snap-persistent.c 2010-05-10 10:36:28.000000000 +0900
+++ linux-2.6.34-rc7/drivers/md/dm-snap-persistent.c 2010-05-12 09:21:50.000000000 +0900
@@ -266,7 +266,7 @@
*/
static chunk_t area_location(struct pstore *ps, chunk_t area)
{
- return 1 + ((ps->exceptions_per_area + 1) * area);
+ return NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area);
}
/*
next reply other threads:[~2010-05-12 1:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 1:29 Tomohiro Kusumi [this message]
2010-05-12 1:39 ` [PATCH] fix hard-coded disk header chunk size for persistent snapshot Alasdair G Kergon
2010-05-12 4:58 ` Mikulas Patocka
2010-05-12 5:57 ` Tomohiro Kusumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BEA0472.1060300@jp.fujitsu.com \
--to=kusumi.tomohiro@jp.fujitsu.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.