Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130965
b: refs/heads/master
c: a68e61e
h: refs/heads/master
i:
  130963: dfdccd3
v: v3
  • Loading branch information
Tony Battersby authored and Linus Torvalds committed Feb 5, 2009
1 parent 1000788 commit b9bd55f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f5e31d7e55ac7fbd4ec5e5b20c8868b0e4564c9
refs/heads/master: a68e61e8ff2d46327a37b69056998b47745db6fa
4 changes: 4 additions & 0 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,15 @@ static void shm_get_stat(struct ipc_namespace *ns, unsigned long *rss,
struct hstate *h = hstate_file(shp->shm_file);
*rss += pages_per_huge_page(h) * mapping->nrpages;
} else {
#ifdef CONFIG_SHMEM
struct shmem_inode_info *info = SHMEM_I(inode);
spin_lock(&info->lock);
*rss += inode->i_mapping->nrpages;
*swp += info->swapped;
spin_unlock(&info->lock);
#else
*rss += inode->i_mapping->nrpages;
#endif
}

total++;
Expand Down

0 comments on commit b9bd55f

Please sign in to comment.