hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/ceph/pagelist.h
....@@ -23,16 +23,7 @@
2323 size_t room; /* room remaining to reset to */
2424 };
2525
26
-static inline void ceph_pagelist_init(struct ceph_pagelist *pl)
27
-{
28
- INIT_LIST_HEAD(&pl->head);
29
- pl->mapped_tail = NULL;
30
- pl->length = 0;
31
- pl->room = 0;
32
- INIT_LIST_HEAD(&pl->free_list);
33
- pl->num_pages_free = 0;
34
- refcount_set(&pl->refcnt, 1);
35
-}
26
+struct ceph_pagelist *ceph_pagelist_alloc(gfp_t gfp_flags);
3627
3728 extern void ceph_pagelist_release(struct ceph_pagelist *pl);
3829