• David Howells's avatar
    FS-Cache: Put an aborted initialised op so that it is accounted correctly · 9b96a59a
    David Howells authored
    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: default avatarDavid Howells <dhowells@redhat.com>
    9b96a59a
operation.c 16 KB