Files
Linux/fs
Peter Zijlstra 2c935bc572 locking/atomic, kref: Add kref_read()
Since we need to change the implementation, stop exposing internals.

Provide kref_read() to read the current reference count; typically
used for debug messages.

Kills two anti-patterns:

	atomic_read(&kref->refcount)
	kref->refcount.counter

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
2017-01-14 11:37:18 +01:00
..
…
2016-12-22 11:25:24 +00:00
2016-12-25 17:21:23 +01:00
2016-12-26 20:29:25 -08:00
…
2016-12-25 17:21:22 +01:00
…
2016-12-25 17:21:23 +01:00
…
…
…
…
…
2016-12-25 17:21:22 +01:00
…
…
2016-12-05 19:01:16 -05:00
…
…
…
2016-12-14 23:48:11 -05:00
2016-12-03 20:51:35 -05:00
…
…
2016-12-16 16:30:49 -05:00
…
…
2016-12-05 19:03:49 -05:00
…
…
2016-12-25 17:21:22 +01:00