Skip to content
  • Mark Fasheh's avatar
    ocfs2: manually d_move() during ocfs2_rename() · 1ba9da2f
    Mark Fasheh authored
    
    
    Make use of FS_RENAME_DOES_D_MOVE to avoid a race condition that can occur
    during ->rename() if we d_move() outside of the parent directory cluster
    locks, and another node discovers the new name (created during the rename)
    and unlinks it. d_move() will unconditionally rehash a dentry - which will
    leave stale data in the system.
    
    Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    1ba9da2f