summaryrefslogtreecommitdiff
path: root/fs/fscache/cookie.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-02-25 17:22:40 +0300
committerDavid Howells <dhowells@redhat.com>2015-04-02 16:28:53 +0300
commita39caadf06879017cb9a8c5c5cb4fc4ccb213275 (patch)
treea558a3886da28ae502a271ce8597b1860e65594b /fs/fscache/cookie.c
parent73c04a47bf79770fbe7f3cf515f5831fccab88ee (diff)
downloadlinux-a39caadf06879017cb9a8c5c5cb4fc4ccb213275.tar.xz
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/fscache/cookie.c')
0 files changed, 0 insertions, 0 deletions