linux/fs/fscache
David Howells a39caadf06 FS-Cache: Put an aborted initialised op so that it is accounted correctly
Call fscache_put_operation() or a wrapper on any op that has gone through
fscache_operation_init() so that the accounting shown in /proc is done
correctly, specifically fscache_n_op_release.

fscache_put_operation() therefore now allows an op in the INITIALISED state as
well as in the CANCELLED and COMPLETE states.

Note that this means that an operation can get put that doesn't have its
->object pointer filled in, so anything that depends on the object needs to be
conditional in fscache_put_operation().

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Steve Dickson <steved@redhat.com>
Acked-by: Jeff Layton <jeff.layton@primarydata.com>
2015-04-02 14:28:53 +01:00
..
cache.c fs/fscache: convert printk to pr_foo() 2014-06-04 16:53:51 -07:00
cookie.c FS-Cache: fscache_object_is_dead() has wrong logic, kill it 2015-04-02 14:28:53 +01:00
fsdef.c FS-Cache: Provide the ability to enable/disable cookies 2013-09-27 18:40:25 +01:00
histogram.c fs/fscache: replace seq_printf by seq_puts 2014-06-04 16:53:52 -07:00
internal.h FS-Cache: Count the number of initialised operations 2015-04-02 14:28:53 +01:00
Kconfig fscache: drop references to slow-work 2010-07-22 22:58:58 +02:00
main.c fs/fscache: make ctl_table static 2014-08-06 18:01:12 -07:00
Makefile FS-Cache: Allow the current state of all objects to be dumped 2009-11-19 18:11:04 +00:00
netfs.c fs/fscache: convert printk to pr_foo() 2014-06-04 16:53:51 -07:00
object-list.c fs/fscache/object-list.c: use __seq_open_private() 2014-10-13 17:52:21 +01:00
object.c FS-Cache: Synchronise object death state change vs operation submission 2015-04-02 14:28:53 +01:00
operation.c FS-Cache: Put an aborted initialised op so that it is accounted correctly 2015-04-02 14:28:53 +01:00
page.c FS-Cache: Put an aborted initialised op so that it is accounted correctly 2015-04-02 14:28:53 +01:00
proc.c FS-Cache: Allow the current state of all objects to be dumped 2009-11-19 18:11:04 +00:00
stats.c FS-Cache: Count the number of initialised operations 2015-04-02 14:28:53 +01:00