public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the akpm tree with the kvm tree
@ 2013-06-17  8:07 Stephen Rothwell
  2013-06-17 12:23 ` Xiao Guangrong
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2013-06-17  8:07 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-next, linux-kernel, Dave Chinner, Glauber Costa,
	Xiao Guangrong, Marcelo Tosatti, Gleb Natapov

[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]

Hi Andrew,

Today's linux-next merge of the akpm tree got a conflict in
arch/x86/kvm/mmu.c between commit 365c886860c4 ("KVM: MMU: reclaim the
zapped-obsolete page first") from the kvm tree and commit "shrinker:
convert remaining shrinkers to count/scan API" from the akpm tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc arch/x86/kvm/mmu.c
index 6941fa7,422493d..0000000
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@@ -4312,12 -4213,8 +4312,13 @@@ restart
  	spin_unlock(&kvm->mmu_lock);
  }
  
 +static bool kvm_has_zapped_obsolete_pages(struct kvm *kvm)
 +{
 +	return unlikely(!list_empty_careful(&kvm->arch.zapped_obsolete_pages));
 +}
 +
- static int mmu_shrink(struct shrinker *shrink, struct shrink_control *sc)
+ static long
+ mmu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
  {
  	struct kvm *kvm;
  	int nr_to_scan = sc->nr_to_scan;
@@@ -4352,16 -4246,9 +4351,16 @@@
  		idx = srcu_read_lock(&kvm->srcu);
  		spin_lock(&kvm->mmu_lock);
  
 +		if (kvm_has_zapped_obsolete_pages(kvm)) {
 +			kvm_mmu_commit_zap_page(kvm,
 +			      &kvm->arch.zapped_obsolete_pages);
 +			goto unlock;
 +		}
 +
- 		prepare_zap_oldest_mmu_page(kvm, &invalid_list);
+ 		freed += prepare_zap_oldest_mmu_page(kvm, &invalid_list);
  		kvm_mmu_commit_zap_page(kvm, &invalid_list);
  
 +unlock:
  		spin_unlock(&kvm->mmu_lock);
  		srcu_read_unlock(&kvm->srcu, idx);
  

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-18  0:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-17  8:07 linux-next: manual merge of the akpm tree with the kvm tree Stephen Rothwell
2013-06-17 12:23 ` Xiao Guangrong
2013-06-18  0:16   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox