Revert "anon_inode: set S_IFREG on the anon_inode"
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 May 2010 15:11:06 +0000 (11:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 28 May 2010 02:03:05 +0000 (22:03 -0400)
This reverts commit a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.

fs/anon_inodes.c

index 9bd4b3876c99c65785b165b9320f702e374ed8e9..e4b75d6eda839d6fddae166904d1002f85a4d09f 100644 (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;