]> 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)
commite38dd2e5c29387f0ee3ef618d4400bd85ca79bd3
tree146ea4ac0fbf5550db8e65a59ddc7c668b68db76
parent4969b96d9c692fe4dc5d8d92154c3d8eebe92514
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