]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - mm/shmem.c
shmem: support RENAME_EXCHANGE
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 23 Jul 2014 13:15:34 +0000 (15:15 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:09 +0000 (14:40 -0400)
commit37456771c58be10dd813fb4510035d0d67a969aa
tree4532039773a41c234ed5f4029b7c22a3c4c7a6e0
parent3b69ff51d087d265aa4af3a532fc4f20bf33e718
shmem: support RENAME_EXCHANGE

This is really simple in tmpfs since the VFS already takes care of
shuffling the dentries.  Just adjust nlink on parent directories and touch
c & mtimes.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/shmem.c