btrfs: add support for RENAME_EXCHANGE and RENAME_WHITEOUT
authorDan Fuhry <dfuhry@datto.com>
Thu, 17 Mar 2016 14:23:38 +0000 (15:23 +0100)
committerFilipe Manana <fdmanana@suse.com>
Fri, 13 May 2016 00:59:21 +0000 (01:59 +0100)
commitcdd1fedf8261cd7a73c0596298902ff4f0f04492
tree7b69760b9f4a072283c1083eef321c95233d8d63
parentc4aba9545430ed0f842d0833072f990a42da90f0
btrfs: add support for RENAME_EXCHANGE and RENAME_WHITEOUT

Two new flags, RENAME_EXCHANGE and RENAME_WHITEOUT, provide for new
behavior in the renameat2() syscall. This behavior is primarily used by
overlayfs. This patch adds support for these flags to btrfs, enabling it to
be used as a fully functional upper layer for overlayfs.

RENAME_EXCHANGE support was written by Davide Italiano originally
submitted on 2 April 2015.

Signed-off-by: Davide Italiano <dccitaliano@gmail.com>
Signed-off-by: Dan Fuhry <dfuhry@datto.com>
[ remove unlikely ]
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
fs/btrfs/inode.c