[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YMnrutsyVKD4Ar2z@zeniv-ca.linux.org.uk>
Date: Wed, 16 Jun 2021 12:16:58 +0000
From: Al Viro <viro@...iv.linux.org.uk>
To: Chen Li <chenli@...ontech.com>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Christian Brauner <christian.brauner@...ntu.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] ramfs: skip mknod if inode already exists.
On Wed, Jun 16, 2021 at 10:53:12AM +0800, Chen Li wrote:
>
> It's possible we try to mknod a dentry, which have
> already bound to an inode, just skip it.
Caller should have checked may_create(), which includes EEXIST handling.
NAKed-by: Al Viro <viro@...iv.linux.org.uk>
Incidentally, if it ever had been called that way, your variant would
leak inode. Not the main problem, though...
Powered by blists - more mailing lists