nfsd_stats_rc_hits_inc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfsd_stats_rc_hits_inc β€” from the Kernel API Manual ✨

okay bestie, so this one is a little kernel function from the Kernel API Manual and it's literally just here to count a vibe (the vibe being a duplicate reply cache hit, more on that in a sec). no cap, it's tiny. but she's important πŸ’–


🌸 NAME 🌸

nfsd_stats_rc_hits_inc β€” Count a duplicate reply cache hit

like, she tallies up one (1) hit on the reply cache and minds her own business πŸŽ€


✨ SYNOPSIS ✨

void nfsd_stats_rc_hits_inc (struct nfsd_net *nn );

that's it. that's the whole signature. she takes one argument, she returns nothing (void), she slays πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nn β€” target network namespace. yep, that's the one and only thing she needs from you 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea πŸ“: these reply cache counters get updated once per RPC. that's the rule, that's the whole system.

and the readers? they use percpu_counter_sum_positive, which is iconic of them, because it means the local batching does not affect read accuracy. so you can batch away locally, bestie, the readers are still gonna see the truth ✨ no cap, accuracy stays intact πŸ’―

ngl the whole point here is that counting is cheap and the reading is still correct β€” that's the flex πŸ˜­πŸ‘‘

🌈 SEE ALSO 🌈

go read her friends, they're all main characters too πŸ‘‘πŸ’œ


and that's the page, bestie 🧚 from ./fs/nfsd, dated October 2026 β€” mwah, drink water, read your counters, periodt πŸ’–πŸŒΈβ­

πŸ“¦ where this page comes from