Commit 3b84240a authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields

nfsd: clean up reset_union_bmap_deny

Fix the "deny" argument type, and start the loop at 1. The 0 iteration
is always a noop.
Signed-off-by: default avatarJeff Layton <jlayton@primarydata.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 6eb3a1d0
......@@ -4266,10 +4266,11 @@ static inline void nfs4_stateid_downgrade(struct nfs4_ol_stateid *stp, u32 to_ac
}
static void
reset_union_bmap_deny(unsigned long deny, struct nfs4_ol_stateid *stp)
reset_union_bmap_deny(u32 deny, struct nfs4_ol_stateid *stp)
{
int i;
for (i = 0; i < 4; i++) {
for (i = 1; i < 4; i++) {
if ((i & deny) != i)
clear_deny(i, stp);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment