• Andreas Gruenbacher's avatar
    gfs2: Add new go_held glock operation · 86c30a01
    Andreas Gruenbacher authored
    Right now, inode_go_instantiate() contains functionality that relates to
    how a glock is held rather than the glock itself, like waiting for
    pending direct I/O to complete and completing interrupted truncates.
    This code is meant to be run each time a holder is acquired, but
    go_instantiate is actually only called once, when the glock is
    instantiated.
    
    To fix that, introduce a new go_held glock operation that is called each
    time a glock holder is acquired.  Move the holder specific code in
    inode_go_instantiate() over to inode_go_held().
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    86c30a01
incore.h 23.5 KB