]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94a7decc5ae6ffab344233222ee8c903d89b69b9
tree7b69760b9f4a072283c1083eef321c95233d8d63
parentd04fdaa7749c6b0a5771e266ec3a8e1aaac01814
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