• Sage Weil's avatar
    ceph: fix snap realm splits · 91dee39e
    Sage Weil authored
    The snap realm split was checking i_snap_realm, not the list_head, to
    determine if an inode belonged in the new realm.  The check always failed,
    which meant we always moved the inode, corrupting the old realm's list and
    causing various crashes.
    
    Also wait to release old realm reference to avoid possibility of use after
    free.
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    91dee39e
snap.c 25 KB