]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1c76eacd879e4eadee6a7a513ebf3da8cc4bc28
tree146ea4ac0fbf5550db8e65a59ddc7c668b68db76
parente63a318accde3cb41e32eab27ccf7ee7c8339ee9
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