vfs: rename: use common code for dir and non-dir
commitbc27027a73e8b80376b51a1583ad1c7445605e8a
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:42 +0000 (1 17:08 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 1 Apr 2014 15:08:42 +0000 (1 17:08 +0200)
tree31ae955e5cf6bcf1fee02b4605dd0e3ef9eff5f5
parentde22a4c3720a96f1c2ebf12b0857b6db6a991f2c
vfs: rename: use common code for dir and non-dir

There's actually very little difference between vfs_rename_dir() and
vfs_rename_other() so move both inline into vfs_rename() which still stays
reasonably readable.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
fs/namei.c