• Sage Weil's avatar
    ceph: clear dir complete, invalidate dentry on replayed rename · ea1409f9
    Sage Weil authored
    If a rename operation is resent to the MDS following an MDS restart, the
    client does not get a full reply (containing the resulting metadata) back.
    In that case, a ceph_rename() needs to compensate by doing anything useful
    that fill_inode() would have, like d_move().
    
    It also needs to invalidate the dentry (to workaround the vfs_rename_dir()
    bug) and clear the dir complete flag, just like fill_trace().
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    ea1409f9
dir.c 33.2 KB