fscache_resize_cookie(9)
β¨ fscache_resize_cookie(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual and it's about fscache_resize_cookie β literally the glow-up button for the size of a cache object π ngl, short page, but every word eats.
π NAME π
fscache_resize_cookie β Request that a cache object be resized
Like, you're formally asking the cache object to change its size. Polite request energy. π¦
πΈ SYNOPSIS πΈ
void fscache_resize_cookie (struct fscache_cookie *cookie , loff_t
new_size );
Look at that signature, so clean, so iconic. Returns void β it gives nothing back, and honestly? Relatable. π
π§ ARGUMENTS π§
cookieβ The cookie representing the cache object. Yes it's literally called a cookie, no we're not baking, it's the handle for your cache object πnew_sizeβ The new size of the object (may beNULL). That's anloff_t, and yes the docs fr say it may beNULL, so that's exactly what we're telling you π
π DESCRIPTION π
Request that the size of an object be changed. That's it, that's the whole vibe β you're officially asking the cache to resize this object. β¨
For the full, no-crumbs-left description, go read Documentation/filesystems/caching/netfs-api.rst. The page says "a complete description" lives there, so go be a main character and read it π
π SEE ALSO π
Kernel file ./include/linux/fscache.h β and the whole friend group of related calls, because nobody does cache work alone π«Ά:
fscache_acquire_volume(9)fscache_relinquish_volume(9)fscache_acquire_cookie(9)fscache_use_cookie(9)fscache_unuse_cookie(9)fscache_relinquish_cookie(9)fscache_update_cookie(9)fscache_invalidate(9)fscache_operation_valid(9)fscache_begin_read_operation(9)fscache_end_operation(9)fscache_read(9)fscache_begin_write_operation(9)fscache_write(9)fscache_clear_page_bits(9)fscache_write_to_cache(9)fscache_note_page_release(9)
and that's the whole page, bestie π sourced from ./include/linux, dated October 2026 β write it in your notes, iykyk πβ¨
π¦ 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