diff options
author | David Howells <dhowells@redhat.com> | 2015-02-25 14:22:40 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2015-04-02 14:28:53 +0100 |
commit | a39caadf06879017cb9a8c5c5cb4fc4ccb213275 (patch) | |
tree | a558a3886da28ae502a271ce8597b1860e65594b /fs/afs/internal.h | |
parent | 73c04a47bf79770fbe7f3cf515f5831fccab88ee (diff) | |
download | op-kernel-dev-a39caadf06879017cb9a8c5c5cb4fc4ccb213275.zip op-kernel-dev-a39caadf06879017cb9a8c5c5cb4fc4ccb213275.tar.gz |
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>
Diffstat (limited to 'fs/afs/internal.h')
0 files changed, 0 insertions, 0 deletions