pnfs_mark_m...lsegs_return(9)
π
pnfs_mark_matching_lsegs_return(9) β Kernel API Manual β¨
π NAME π
pnfs_mark_matching_lsegs_return β Free or return matching layout segments. no cap, that's the whole vibe: it deals with layout segments and decides whether they get freed or sent back. π¦
β¨ SYNOPSIS β¨
int pnfs_mark_matching_lsegs_return (struct pnfs_layout_hdr *lo , struct
list_head *tmp_list , const struct pnfs_layout_range *return_range , u32
seq , bool cancel_io );
πΈ ARGUMENTS πΈ
loβ pointer to layout header. lowkey the main character here. πtmp_listβ list header to be used withpnfs_free_lseg_list. keep that exact function name, bestie. πreturn_rangeβ describe layout segment ranges to be returned. literally the range info for what's coming back. πseqβ stateid seqid to match. yep, that's the seqid vibe check. π₯cancel_ioβ signal io be cancelled. yes, "io" exactly like that. π
π DESCRIPTION π
This function is mainly intended for use by layoutrecall. It attempts to free the layout segment immediately, or else to mark it for return as soon as its reference count drops to zero. obsessed with that reference count hitting zero, fr fr π«Ά
π§ Returns
0β alayoutreturnneeds to be scheduled. πEBUSYβ there are layout segment that are still in use. πENOENTβ there are no layout segments that need to be returned. π
π¦ SEE ALSO π¦
- Kernel file
./fs/nfs/pnfs.cβpnfs_mark_matching_lsegs_invalid(9)
okay bestie, that's the page π«Άπ β source/version: ./fs/nfs, date: October 2026, manual page: pnfs_mark_m...lsegs_return(9). periodt π
π¦ 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