Skip to content

Commit

Permalink
10084 fop_open() doesn't need to check for a NULL vnode
Browse files Browse the repository at this point in the history
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
John Levon authored and Dan McDonald committed Jan 17, 2019
1 parent d629489 commit f19903c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/src/uts/common/fs/vnode.c
Expand Up @@ -21,7 +21,7 @@

/*
* Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2017, Joyent, Inc.
* Copyright (c) 2018, Joyent, Inc.
* Copyright 2016 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2011, 2017 by Delphix. All rights reserved.
*/
Expand Down Expand Up @@ -3368,7 +3368,7 @@ fop_open(
* reflect the vnode switch.
*/
VOPSTATS_UPDATE(*vpp, open);
if (*vpp != vp && *vpp != NULL) {
if (*vpp != vp) {
vn_copypath(vp, *vpp);
if (((*vpp)->v_type == VREG) && (mode & FREAD))
atomic_inc_32(&(*vpp)->v_rdcnt);
Expand Down

0 comments on commit f19903c

Please sign in to comment.