linux-next: manual merge of the kmap_atomic tree with the staging.current tree

4 messages, 3 authors, 2012-02-09 · open the first message on its own page

linux-next: manual merge of the kmap_atomic tree with the staging.current tree

From: Stephen Rothwell <hidden>
Date: 2012-02-09 03:48:18

Hi Cong,

Today's linux-next merge of the kmap_atomic tree got a conflict in
drivers/staging/zcache/zcache-main.c between commit 2a4830110b90
("staging: zcache: fix serialization bug in zv stats") from the
staging.current tree and commit a3a2486aeadb ("zcache: remove the second
argument of k [un]map_atomic()") from the kmap_atomic tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc drivers/staging/zcache/zcache-main.c
index 875acd8,57550ae..0000000
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@@ -674,9 -675,9 +674,9 @@@ static struct zv_hdr *zv_create(struct 
  			&page, &offset, ZCACHE_GFP_MASK);
  	if (unlikely(ret))
  		goto out;
 -	zv_curr_dist_counts[chunks]++;
 -	zv_cumul_dist_counts[chunks]++;
 +	atomic_inc(&zv_curr_dist_counts[chunks]);
 +	atomic_inc(&zv_cumul_dist_counts[chunks]);
- 	zv = kmap_atomic(page, KM_USER0) + offset;
+ 	zv = kmap_atomic(page) + offset;
  	zv->index = index;
  	zv->oid = *oid;
  	zv->pool_id = pool_id;

Re: linux-next: manual merge of the kmap_atomic tree with the staging.current tree

From: Cong Wang <hidden>
Date: 2012-02-09 08:40:16

On Thu, 2012-02-09 at 14:48 +1100, Stephen Rothwell wrote:
Hi Cong,

Today's linux-next merge of the kmap_atomic tree got a conflict in
drivers/staging/zcache/zcache-main.c between commit 2a4830110b90
("staging: zcache: fix serialization bug in zv stats") from the
staging.current tree and commit a3a2486aeadb ("zcache: remove the second
argument of k [un]map_atomic()") from the kmap_atomic tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
Looks good. Thanks, Stephen!

Andrew, Greg,

As Linus doesn't want to merge my tree, could any of you take my patches
in kmap_atomic tree?

Thanks.

Re: linux-next: manual merge of the kmap_atomic tree with the staging.current tree

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2012-02-09 08:45:14

On Thu, 09 Feb 2012 16:39:57 +0800 Cong Wang [off-list ref] wrote:
As Linus doesn't want to merge my tree, could any of you take my patches
in kmap_atomic tree?
He's not the messiah, he's a very naughty boy.

Send 'em over.

Re: linux-next: manual merge of the kmap_atomic tree with the staging.current tree

From: Cong Wang <hidden>
Date: 2012-02-09 09:30:00

On Thu, 2012-02-09 at 00:45 -0800, Andrew Morton wrote:
On Thu, 09 Feb 2012 16:39:57 +0800 Cong Wang [off-list ref] wrote:
quoted
As Linus doesn't want to merge my tree, could any of you take my patches
in kmap_atomic tree?
He's not the messiah, he's a very naughty boy.
:)
Send 'em over.
Okay, I will rebase them to the latest Linus tree and send them to you.

Thanks much!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help