Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753943AbbB0EDC (ORCPT ); Thu, 26 Feb 2015 23:03:02 -0500 Received: from mail113-251.mail.alibaba.com ([205.204.113.251]:59029 "EHLO us-alimail-mta1.hst.scl.en.alidc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753209AbbB0EDA (ORCPT ); Thu, 26 Feb 2015 23:03:00 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=r41g03014;MF=hillf.zj@alibaba-inc.com;PH=DS;RN=11;RT=11;SR=0; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "Vlastimil Babka" Cc: , "'Jerome Marchand'" , "linux-kernel" , "'Andrew Morton'" , , "'Hugh Dickins'" , "'Michal Hocko'" , "'Kirill A. Shutemov'" , "'Cyrill Gorcunov'" , "Hillf Danton" Subject: Re: [PATCH 3/4] mm, shmem: Add shmem resident memory accounting Date: Fri, 27 Feb 2015 12:01:53 +0800 Message-ID: <0be701d05242$202c2eb0$60848c10$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdBSQTt/k850tjNWR0eNpLxMV7mH4w== Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 612 Lines: 17 > @@ -501,6 +502,7 @@ static void smaps_pte_entry(pte_t *pte, unsigned long addr, > pte_none(*pte) && vma->vm_file) { > struct address_space *mapping = > file_inode(vma->vm_file)->i_mapping; > + pgoff_t pgoff = linear_page_index(vma, addr); > > /* > * shmem does not use swap pte's so we have to consult This hunk should go to patch 2/4 Hillf -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/