aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2009-08-03 17:58:29 +0000
committerGreg Kroah-Hartman <[email protected]>2009-08-04 20:46:30 +0000
commit18eac1cc100fa2afd5f39085aae6b694e417734b (patch)
tree52ac69ef9832c77a0c6865f9eff39dd4f287776e /security/selinux/hooks.c
parentMerge branch 'for-linus' of git://neil.brown.name/md (diff)
downloadkernel-18eac1cc100fa2afd5f39085aae6b694e417734b.tar.gz
kernel-18eac1cc100fa2afd5f39085aae6b694e417734b.zip
tty-ldisc: make refcount be atomic_t 'users' count
This is pure preparation of changing the ldisc reference counting to be a true refcount that defines the lifetime of the ldisc. But this is a purely syntactic change for now to make the next steps easier. This patch should make no semantic changes at all. But I wanted to make the ldisc refcount be an atomic (I will be touching it without locks soon enough), and I wanted to rename it so that there isn't quite as much confusion between 'ldo->refcount' (ldisk operations refcount) and 'ld->refcount' (ldisc refcount itself) in the same file. So it's now an atomic 'ld->users' count. It still starts at zero, despite having a reference from 'tty->ldisc', but that will change once we turn it into a _real_ refcount. Signed-off-by: Linus Torvalds <[email protected]> Tested-by: OGAWA Hirofumi <[email protected]> Tested-by: Sergey Senozhatsky <[email protected]> Acked-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions