]> git.ipfire.org Git - thirdparty/linux.git/commit
9p: simplify v9fs_vfs_atomic_open()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Sep 2025 15:28:20 +0000 (11:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Sep 2025 03:59:38 +0000 (23:59 -0400)
commitfb3d71972bc3112e7dde2426bef6efa1d0a122a7
tree8cc17a02eb73bfa684b043de5673860976d9b02d
parentfe91e078b60d1beabf5cef4a37c848457a6d2dfb
9p: simplify v9fs_vfs_atomic_open()

if v9fs_vfs_lookup() returns a preexisting alias, it is guaranteed to be
positive.  IOW, in that case we will immediately return finish_no_open(),
leaving only the case res == NULL past that point.

Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/9p/vfs_inode.c