提交 92ba39a7 编写于 作者: K Kirill A. Shutemov 提交者: Linus Torvalds

memcg: remove unused variable

mm/memcontrol.c: In function `mc_handle_file_pte':
mm/memcontrol.c:5206:16: warning: variable `inode' set but not used [-Wunused-but-set-variable]
Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
Acked-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: NMichal Hocko <mhocko@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6bbda35c
...@@ -5150,7 +5150,6 @@ static struct page *mc_handle_file_pte(struct vm_area_struct *vma, ...@@ -5150,7 +5150,6 @@ static struct page *mc_handle_file_pte(struct vm_area_struct *vma,
unsigned long addr, pte_t ptent, swp_entry_t *entry) unsigned long addr, pte_t ptent, swp_entry_t *entry)
{ {
struct page *page = NULL; struct page *page = NULL;
struct inode *inode;
struct address_space *mapping; struct address_space *mapping;
pgoff_t pgoff; pgoff_t pgoff;
...@@ -5159,7 +5158,6 @@ static struct page *mc_handle_file_pte(struct vm_area_struct *vma, ...@@ -5159,7 +5158,6 @@ static struct page *mc_handle_file_pte(struct vm_area_struct *vma,
if (!move_file()) if (!move_file())
return NULL; return NULL;
inode = vma->vm_file->f_path.dentry->d_inode;
mapping = vma->vm_file->f_mapping; mapping = vma->vm_file->f_mapping;
if (pte_none(ptent)) if (pte_none(ptent))
pgoff = linear_page_index(vma, addr); pgoff = linear_page_index(vma, addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册