• Sage Weil's avatar
    ceph: fix cap_snap and realm split · ae00d4f3
    Sage Weil authored
    The cap_snap creation/queueing relies on both the current i_head_snapc
    _and_ the i_snap_realm pointers being correct, so that the new cap_snap
    can properly reference the old context and the new i_head_snapc can be
    updated to reference the new snaprealm's context.  To fix this, we:
    
     - move inodes completely to the new (split) realm so that i_snap_realm
       is correct, and
     - generate the new snapc's _before_ queueing the cap_snaps in
       ceph_update_snap_trace().
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    ae00d4f3
addr.c 31.7 KB