vfs: add cross-rename
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:43 +0000 (17:08 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:43 +0000 (17:08 +0200)
commitda1ce0670c14d8380e423a3239e562a1dc15fa9e
tree146ea4ac0fbf5550db8e65a59ddc7c668b68db76
parent4fd699ae3fbca2ac760137e1d26f98a105f59f05
vfs: add cross-rename

If flags contain RENAME_EXCHANGE then exchange source and destination files.
There's no restriction on the type of the files; e.g. a directory can be
exchanged with a symlink.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
fs/dcache.c
fs/namei.c
include/linux/dcache.h
include/uapi/linux/fs.h
security/security.c