linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* list_lru isolate callback question?
@ 2025-06-05  2:16 Dave Airlie
  2025-06-05  7:55 ` Kairui Song
  0 siblings, 1 reply; 13+ messages in thread
From: Dave Airlie @ 2025-06-05  2:16 UTC (permalink / raw)
  To: kasong, Dave Chinner, Johannes Weiner,
	Linux Memory Management List

I've hit a case where I think it might be valuable to have the nid +
struct memcg for the item being iterated available in the isolate
callback, I know in theory we should be able to retrieve it from the
item, but I'm also not convinced we should need to since we have it
already in the outer function?

typedef enum lru_status (*list_lru_walk_cb)(struct list_head *item,
                        struct list_lru_one *list,
                        int nid,
                        struct mem_cgroup *memcg,
                        void *cb_arg);

It's probably not essential (I think I can get the nid back easily,
not sure about the memcg yet), but I thought I'd ask if there would be
resistance against just adding them to the callback?

Dave.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-06-11 22:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-05  2:16 list_lru isolate callback question? Dave Airlie
2025-06-05  7:55 ` Kairui Song
2025-06-05  9:22   ` Dave Airlie
2025-06-05 13:53     ` Matthew Wilcox
2025-06-05 20:59       ` Dave Airlie
2025-06-05 22:39     ` Dave Chinner
2025-06-05 22:59       ` Dave Airlie
2025-06-10 22:44         ` Dave Chinner
2025-06-11  1:40           ` Dave Airlie
2025-06-10 23:07         ` Balbir Singh
2025-06-11  1:43           ` Dave Airlie
2025-06-11 22:34             ` Balbir Singh
2025-06-11  3:36         ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).