diff options
author | Jan Kara <jack@suse.cz> | 2014-03-26 06:20:14 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-27 17:52:54 +0100 |
commit | 75c5a52da3fc2a06abb6c6192bdf5d680e56d37d (patch) | |
tree | ad31cd7d9c1d5893d6b2ce392b170c068b625688 /include | |
parent | Merge tag 'trace-fixes-v3.14-rc7-v2' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-75c5a52da3fc2a06abb6c6192bdf5d680e56d37d.tar.xz linux-75c5a52da3fc2a06abb6c6192bdf5d680e56d37d.zip |
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: Jan Kara <jack@suse.cz>
[ Further simplified on suggestion from Dave Jones ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions