• D
    xfs: one-shot cached buffers · 879de98e
    Dave Chinner 提交于
    For the new growfs work, we want to ensure that we serialise
    secondary superblock updates with other operations (e.g. scrub)
    correctly, but we don't want to cache the buffers for long term
    reuse. We need cached buffers for serialisation, however.
    
    To solve this, introduce a "oneshot" buffer which will be marshalled
    through the cache but then released once the last current reference
    goes away. If the buffer is already cached, then we ignore the
    "one-shot" behaviour and leave the buffer in the state it was prior
    to the one-shot command being run. This means we don't perturb
    either the working set or existing cached buffer state by a one-shot
    operation.
    Signed-Off-By: NDave Chinner <dchinner@redhat.com>
    Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
    879de98e
xfs_buf.h 13.1 KB