syscall/renameat2: Fix filesystem

The flag RENAME_EXCHANGE for the syscall renameat2 is not supported
on BTRFS filesystem. The filesystem type is now tested if the
syscall returns EINVAL.

Signed-off-by: Cedric Hnyda <chnyda@suse.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
2 files changed