Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2021 00:40:18 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 32e5616359e5 - stable/13 - tmpfs: drop a redundant NULL check in tmpfs_alloc_vp
Message-ID:  <202106070040.1570eI1Y065869@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=32e5616359e5e7551e7a97ec54ee110d4af7e250

commit 32e5616359e5e7551e7a97ec54ee110d4af7e250
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-05-29 01:10:53 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-06-07 00:34:58 +0000

    tmpfs: drop a redundant NULL check in tmpfs_alloc_vp
    
    (cherry picked from commit 439d942b9e7ab4df2bb7a628602069d31788df17)
---
 sys/fs/tmpfs/tmpfs_subr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index df5bc12047be..322641b5b853 100644
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -831,7 +831,7 @@ loop:
 		 * Make sure the vnode is still there after
 		 * getting the interlock to avoid racing a free.
 		 */
-		if (node->tn_vnode == NULL || node->tn_vnode != vp) {
+		if (node->tn_vnode != vp) {
 			vput(vp);
 			TMPFS_NODE_LOCK(node);
 			goto loop;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106070040.1570eI1Y065869>