kernel_optimize_test/fs/gfs2
Al Viro cfb2f9d5c9 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: stable@vger.kernel.org # v3.14+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2014-09-12 20:58:55 +01:00
..
acl.c GFS2: inline function gfs2_set_mode 2014-03-19 15:53:52 +00:00
acl.h GFS2: Increase the max number of ACLs 2014-03-19 15:16:24 +00:00
aops.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-06-12 10:30:18 -07:00
bmap.c GFS2: Change maxlen variables to size_t 2014-08-21 10:22:23 +01:00
bmap.h GFS2: Clean up journal extent mapping 2014-03-03 13:50:12 +00:00
dentry.c
dir.c GFS2: Use pr_<level> more consistently 2014-03-07 09:30:51 +00:00
dir.h
export.c
file.c GFS2: Request demote when a "try" flock fails 2014-08-21 10:22:52 +01:00
gfs2.h
glock.c Merge branch 'sched/urgent' into sched/core, to merge fixes before applying new changes 2014-07-28 10:03:00 +02:00
glock.h
glops.c GFS2: memcontrol: Spelling s/invlidate/invalidate/ 2014-07-18 11:14:31 +01:00
glops.h GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
incore.h GFS2: Don't use MAXQUOTAS value 2014-09-11 10:59:56 +01:00
inode.c GFS2: fix d_splice_alias() misuses 2014-09-12 20:58:55 +01:00
inode.h
Kconfig
lock_dlm.c Merge branch 'sched/urgent' into sched/core, to merge fixes before applying new changes 2014-07-28 10:03:00 +02:00
log.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
log.h GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
lops.c GFS2: lops.c: replace 0 by NULL for pointers 2014-04-28 09:41:55 +01:00
lops.h GFS2: Move log buffer lists into transaction 2014-02-24 16:54:54 +00:00
main.c GFS2: Use pr_<level> more consistently 2014-03-07 09:30:51 +00:00
Makefile
meta_io.c mm: non-atomically mark page accessed during page cache allocation where possible 2014-06-04 16:54:10 -07:00
meta_io.h GFS2: Fix address space from page function 2014-03-31 17:48:27 +01:00
ops_fstype.c sched: Remove proliferation of wait_on_bit() action functions 2014-07-16 15:10:39 +02:00
quota.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
quota.h
recovery.c sched: Remove proliferation of wait_on_bit() action functions 2014-07-16 15:10:39 +02:00
recovery.h GFS2: Move recovery variables to journal structure in memory 2014-03-07 09:14:48 +00:00
rgrp.c GFS2: fs/gfs2/rgrp.c: kernel-doc warning fixes 2014-07-18 11:15:14 +01:00
rgrp.h
super.c GFS2: fs/gfs2/super.c: replace seq_printf by seq_puts 2014-08-21 10:22:05 +01:00
super.h
sys.c This must be about the smallest merge window patch set ever for GFS2. 2014-06-04 08:30:10 -07:00
sys.h
trace_gfs2.h
trans.c GFS2: remove transaction glock 2014-05-14 10:04:34 +01:00
trans.h
util.c GFS2: Convert gfs2_lm_withdraw to use fs_err 2014-03-07 09:39:18 +00:00
util.h GFS2: Convert gfs2_lm_withdraw to use fs_err 2014-03-07 09:39:18 +00:00
xattr.c
xattr.h