2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-18 07:35:12 +08:00

Revert "anon_inode: set S_IFREG on the anon_inode"

This reverts commit a7cf4145bb.
This commit is contained in:
Al Viro 2010-05-27 11:11:06 -04:00
parent 9dda696f0d
commit 1eb2cbb6d5

View File

@ -205,7 +205,7 @@ static struct inode *anon_inode_mkinode(void)
* that it already _is_ on the dirty list.
*/
inode->i_state = I_DIRTY;
inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
inode->i_mode = S_IRUSR | S_IWUSR;
inode->i_uid = current_fsuid();
inode->i_gid = current_fsgid();
inode->i_flags |= S_PRIVATE;