commit | 75c5a52da3fc2a06abb6c6192bdf5d680e56d37d | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Wed Mar 26 06:20:14 2014 +0100 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Mar 27 09:52:54 2014 -0700 |
tree | ad31cd7d9c1d5893d6b2ce392b170c068b625688 | |
parent | f217c44ebd41ce7369d2df07622b2839479183b0 [diff] |
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>