Thread (73 messages) 73 messages, 5 authors, 2020-12-02

Re: [PATCH v3 17/38] namei: introduce struct renamedata

From: Christian Brauner <hidden>
Date: 2020-12-02 09:19:14
Also in: fstests, linux-api, linux-ext4, linux-fsdevel, linux-security-module, selinux

On Tue, Dec 01, 2020 at 11:53:36AM +0100, Christoph Hellwig wrote:
quoted
+int vfs_rename(struct renamedata *rd)
 {
 	int error;
 	struct user_namespace *user_ns = &init_user_ns;
+	struct inode *old_dir = rd->old_dir, *new_dir = rd->new_dir;
+	struct dentry *old_dentry = rd->old_dentry,
+		      *new_dentry = rd->new_dentry;
This looks weird.  I'd just write the obvious:

	struct dentry *old_dentry = rd->old_dentry;
	struct dentry *new_dentry = rd->new_dentry;
Fixed.

Thanks!
Christian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help