• S
    ceph: fix snap realm splits · 91dee39e
    Sage Weil 提交于
    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: NSage Weil <sage@newdream.net>
    91dee39e
snap.c 25.0 KB