aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 4fefbad7096d..02faa54dbf5a 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -397,6 +397,11 @@ static int newseg (struct ipc_namespace *ns, key_t key, int shmflg, size_t size)
397 shp->shm_nattch = 0; 397 shp->shm_nattch = 0;
398 shp->id = shm_buildid(ns, id, shp->shm_perm.seq); 398 shp->id = shm_buildid(ns, id, shp->shm_perm.seq);
399 shp->shm_file = file; 399 shp->shm_file = file;
400 /*
401 * shmid gets reported as "inode#" in /proc/pid/maps.
402 * proc-ps tools use this. Changing this will break them.
403 */
404 file->f_dentry->d_inode->i_ino = shp->id;
400 405
401 ns->shm_tot += numpages; 406 ns->shm_tot += numpages;
402 shm_unlock(shp); 407 shm_unlock(shp);