btrfs: add RENAME_NOREPLACE
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 23 Jul 2014 13:15:32 +0000 (15:15 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:09 +0000 (14:40 -0400)
commit80ace85c915d0f41016f82917218997b72431258
tree59fa51e5968e831c5079a148f21f58b099fdb13b
parenta0dbc56610b3e157f19241404e738744b7e7877e
btrfs: add RENAME_NOREPLACE

RENAME_NOREPLACE is trivial to implement for most filesystems: switch over
to ->rename2() and check for the supported flags.  The rest is done by the
VFS.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Chris Mason <clm@fb.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/inode.c