tmpfs_vnops.c (ba08feecbf3f735005336f6b0224e59472a61e52) | tmpfs_vnops.c (abd80ddb9474948fb291becc395d72b40927a32b) |
---|---|
1/* $NetBSD: tmpfs_vnops.c,v 1.39 2007/07/23 15:41:01 jmmv Exp $ */ 2 3/*- 4 * SPDX-License-Identifier: BSD-2-Clause-NetBSD 5 * 6 * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. 7 * All rights reserved. 8 * --- 1564 unchanged lines hidden (view full) --- 1573 TMPFS_NODE_UNLOCK(tnp); 1574 TMPFS_UNLOCK(tm); 1575 error = tmpfs_vptocnp_fill(vp, tn, tnp, buf, buflen, 1576 dvp); 1577 if (error == 0) { 1578 tmpfs_free_node(tm, tnp); 1579 return (0); 1580 } | 1/* $NetBSD: tmpfs_vnops.c,v 1.39 2007/07/23 15:41:01 jmmv Exp $ */ 2 3/*- 4 * SPDX-License-Identifier: BSD-2-Clause-NetBSD 5 * 6 * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. 7 * All rights reserved. 8 * --- 1564 unchanged lines hidden (view full) --- 1573 TMPFS_NODE_UNLOCK(tnp); 1574 TMPFS_UNLOCK(tm); 1575 error = tmpfs_vptocnp_fill(vp, tn, tnp, buf, buflen, 1576 dvp); 1577 if (error == 0) { 1578 tmpfs_free_node(tm, tnp); 1579 return (0); 1580 } |
1581 if ((vp->v_iflag & VI_DOOMED) != 0) { | 1581 if (VN_IS_DOOMED(vp)) { |
1582 tmpfs_free_node(tm, tnp); 1583 return (ENOENT); 1584 } 1585 TMPFS_LOCK(tm); 1586 TMPFS_NODE_LOCK(tnp); 1587 } 1588 if (tmpfs_free_node_locked(tm, tnp, false)) { 1589 goto restart; --- 54 unchanged lines hidden --- | 1582 tmpfs_free_node(tm, tnp); 1583 return (ENOENT); 1584 } 1585 TMPFS_LOCK(tm); 1586 TMPFS_NODE_LOCK(tnp); 1587 } 1588 if (tmpfs_free_node_locked(tm, tnp, false)) { 1589 goto restart; --- 54 unchanged lines hidden --- |