Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11381
b: refs/heads/master
c: 551110a
h: refs/heads/master
i:
  11379: 6669426
v: v3
  • Loading branch information
Krishnakumar R authored and Linus Torvalds committed Oct 30, 2005
1 parent 114c95c commit c88c26a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b1533f67cc1a595457af6d05ab3510294e2ca9c
refs/heads/master: 551110a94aa15890d1709b179c4be1e66ff6db53
7 changes: 4 additions & 3 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ static int newseg (key_t key, int shmflg, size_t size)
shp->id = shm_buildid(id,shp->shm_perm.seq);
shp->shm_file = file;
file->f_dentry->d_inode->i_ino = shp->id;
if (shmflg & SHM_HUGETLB)
set_file_hugepages(file);
else

/* Hugetlb ops would have already been assigned. */
if (!(shmflg & SHM_HUGETLB))
file->f_op = &shm_file_operations;

shm_tot += numpages;
shm_unlock(shp);
return shp->id;
Expand Down

0 comments on commit c88c26a

Please sign in to comment.