Skip to content
Commit 75c5a52d authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds
Browse files

vfs: Allocate anon_inode_inode in anon_inode_init()



Currently we allocated anon_inode_inode in anon_inodefs_mount. This is
somewhat fragile as if that function ever gets called again, it will
overwrite anon_inode_inode pointer. So move the initialization of
anon_inode_inode to anon_inode_init().

Signed-off-by: default avatarJan Kara <jack@suse.cz>
[ Further simplified on suggestion from Dave Jones ]
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f217c44e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment