Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfs: remove empty if statement from nfs3_prepare_get_acl

Remove empty if statement from nfs3_prepare_get_acl and update comment to
follow the one from the referred fs/posix_acl.c:get_acl().

No functional change intended.

Link: https://lkml.kernel.org/r/20221130151231.3654-1-ubizjak@gmail.com
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: Anna Schumaker <anna@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Uros Bizjak and committed by
Andrew Morton
f9641a36 b99b2588

+2 -3
+2 -3
fs/nfs/nfs3acl.c
··· 21 21 { 22 22 struct posix_acl *sentinel = uncached_acl_sentinel(current); 23 23 24 - if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) { 25 - /* Not the first reader or sentinel already in place. */ 26 - } 24 + /* If the ACL isn't being read yet, set our sentinel. */ 25 + cmpxchg(p, ACL_NOT_CACHED, sentinel); 27 26 } 28 27 29 28 static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl)