pnfs_mark_m...lsegs_return(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with pnfs_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 β€” a layoutreturn needs 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 πŸ¦‹


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