diff options
author | Miklos Szeredi <[email protected]> | 2018-07-24 15:01:55 +0200 |
---|---|---|
committer | Al Viro <[email protected]> | 2018-08-03 16:03:32 -0400 |
commit | e950564b97fd0f541b02eb207685d0746f5ecf29 (patch) | |
tree | 48519b6c40bc193c70f8b8e60849da7c57f50226 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | a6cbedfa8783b42b9272c05297865bdb501005cb (diff) |
vfs: don't evict uninitialized inode
iput() ends up calling ->evict() on new inode, which is not yet initialized
by owning fs. So use destroy_inode() instead.
Add to sb->s_inodes list only if inode is not in I_CREATING state (meaning
that it wasn't allocated with new_inode(), which already does the
insertion).
Reported-by: Al Viro <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Fixes: 80ea09a002bf ("vfs: factor out inode_insert5()")
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions