]> 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)
commitef5f03fe1064648926664e15c64edebc94f9383b
tree7b69760b9f4a072283c1083eef321c95233d8d63
parente6a1d19eb84fec4461de304edece87e56f0b06dd
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