hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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