diff options
| author | Al Viro <[email protected]> | 2014-09-12 19:56:04 +0000 |
|---|---|---|
| committer | Steven Whitehouse <[email protected]> | 2014-09-12 19:58:55 +0000 |
| commit | cfb2f9d5c921e38b0f12bb26fed10b877664444d (patch) | |
| tree | c48f758a0b66ec32d15e4ff5a42334a72889a1b5 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | GFS2: Don't use MAXQUOTAS value (diff) | |
| download | kernel-cfb2f9d5c921e38b0f12bb26fed10b877664444d.tar.gz kernel-cfb2f9d5c921e38b0f12bb26fed10b877664444d.zip | |
GFS2: fix d_splice_alias() misuses
Callers of d_splice_alias(dentry, inode) don't need iput(), neither
on success nor on failure. Either the reference to inode is stored
in a previously negative dentry, or it's dropped. In either case
inode reference the caller used to hold is consumed.
__gfs2_lookup() does iput() in case when d_splice_alias() has failed.
Double iput() if we ever hit that. And gfs2_create_inode() ends up
not only with double iput(), but with link count dropped to zero - on
an inode it has just found in directory.
Cc: [email protected] # v3.14+
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
