nfsd_stats_io_write_add(9)
β¨ nfsd_stats_io_write_add β¨
Okay bestie, welcome to the nfsd_stats_io_write_add page from the Kernel API Manual β it's a little function with big "I keep the receipts" energy π
πΈ NAME πΈ
nfsd_stats_io_write_add β literally counts the number of bytes for an NFS WRITE π
π¦ SYNOPSIS π¦
void nfsd_stats_io_write_add (struct nfsd_net *nn , struct svc_export
*exp , s64 amount );
That's the whole signature, no cap β returns void, takes three things, done β¨
π ARGUMENTS π
nnβ the target network namespace, aka where the vibes (and the counters) live π«Άexpβ the target export, the specific thing being written to πamountβ the byte count, just how many bytes we're talking about π
π₯ DESCRIPTION π₯
So here's the tea: these counters get updated on every single WRITE request π₯ Like, every one. No skipping, no "oh I'll do it later."
And the readers? They use percpu_counter_sum_positive, which means the local batching that happens under the hood does not mess with read accuracy π Translation: the number you read is the real number, periodt. The batching is a whole internal thing and it stays in its lane π
π SEE ALSO π
Kernel file ./fs/nfsd/stats.h plus the whole friend group:
nfsd_stats_rc_hits_inc(9)nfsd_stats_rc_misses_inc(9)nfsd_stats_rc_nocache_inc(9)nfsd_stats_io_read_add(9)nfsd_stats_drc_mem_usage_add(9)nfsd_stats_drc_mem_usage_sub(9)
Go read them too, iykyk π
Heads up bestie: this page lives under./fs/nfsdin theKernel API Manual, dated October 2026 β That's the source/version + date situation, so now you know exactly where it came from π§
Stay slay, count your bytes, and may your counters always sum positive πβ¨ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms