• M
    ocfs2: manually d_move() during ocfs2_rename() · 1ba9da2f
    Mark Fasheh 提交于
    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: NMark Fasheh <mark.fasheh@oracle.com>
    1ba9da2f
dcache.c 11.6 KB