summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorMandar padmawar <mpadmawar@nvidia.com>2014-06-10 07:13:21 -0700
committerMandar padmawar <mpadmawar@nvidia.com>2014-06-10 07:15:56 -0700
commitda616b70c1939e02f9dc962b3d9196fe27cfee39 (patch)
treee3dc844dd92f1ea51fe5819d5919dec1f59e5760 /fs/proc
parentbbf3566b5c9c0106300933665f42e94c18415702 (diff)
parentdce68ca8e1015cf5bcd33284c0c1c9191e79885d (diff)
Merge commit 'refs/changes/82/419382/1' of ssh://git-master:12001/linux-3.10 into promotion_build
Change-Id: I9418a05ad5c56b2e902249218bac2fa594d99f56
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/base.c1
-rw-r--r--fs/proc/page.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 77377014887c..4823113f2584 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1867,6 +1867,7 @@ static int proc_map_files_get_link(struct dentry *dentry, struct path *path)
if (rc)
goto out_mmput;
+ rc = -ENOENT;
down_read(&mm->mmap_sem);
vma = find_exact_vma(mm, vm_start, vm_end);
if (vma && vma->vm_file) {
diff --git a/fs/proc/page.c b/fs/proc/page.c
index b8730d9ebaee..2a8cc94bb641 100644
--- a/fs/proc/page.c
+++ b/fs/proc/page.c
@@ -121,7 +121,7 @@ u64 stable_page_flags(struct page *page)
* just checks PG_head/PG_tail, so we need to check PageLRU to make
* sure a given page is a thp, not a non-huge compound page.
*/
- else if (PageTransCompound(page) && PageLRU(compound_trans_head(page)))
+ else if (PageTransCompound(page) && PageLRU(compound_head(page)))
u |= 1 << KPF_THP;
/*