Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libceph: Remove unused ceph_pagelist functions

ceph_pagelist_truncate() and ceph_pagelist_set_cursor() have been unused
since commit
39be95e9c8c0 ("ceph: ceph_pagelist_append might sleep while atomic")

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

authored by

Dr. David Alan Gilbert and committed by
Ilya Dryomov
03854920 adc21867

-50
-12
include/linux/ceph/pagelist.h
··· 17 17 refcount_t refcnt; 18 18 }; 19 19 20 - struct ceph_pagelist_cursor { 21 - struct ceph_pagelist *pl; /* pagelist, for error checking */ 22 - struct list_head *page_lru; /* page in list */ 23 - size_t room; /* room remaining to reset to */ 24 - }; 25 - 26 20 struct ceph_pagelist *ceph_pagelist_alloc(gfp_t gfp_flags); 27 21 28 22 extern void ceph_pagelist_release(struct ceph_pagelist *pl); ··· 26 32 extern int ceph_pagelist_reserve(struct ceph_pagelist *pl, size_t space); 27 33 28 34 extern int ceph_pagelist_free_reserve(struct ceph_pagelist *pl); 29 - 30 - extern void ceph_pagelist_set_cursor(struct ceph_pagelist *pl, 31 - struct ceph_pagelist_cursor *c); 32 - 33 - extern int ceph_pagelist_truncate(struct ceph_pagelist *pl, 34 - struct ceph_pagelist_cursor *c); 35 35 36 36 static inline int ceph_pagelist_encode_64(struct ceph_pagelist *pl, u64 v) 37 37 {
-38
net/ceph/pagelist.c
··· 131 131 return 0; 132 132 } 133 133 EXPORT_SYMBOL(ceph_pagelist_free_reserve); 134 - 135 - /* Create a truncation point. */ 136 - void ceph_pagelist_set_cursor(struct ceph_pagelist *pl, 137 - struct ceph_pagelist_cursor *c) 138 - { 139 - c->pl = pl; 140 - c->page_lru = pl->head.prev; 141 - c->room = pl->room; 142 - } 143 - EXPORT_SYMBOL(ceph_pagelist_set_cursor); 144 - 145 - /* Truncate a pagelist to the given point. Move extra pages to reserve. 146 - * This won't sleep. 147 - * Returns: 0 on success, 148 - * -EINVAL if the pagelist doesn't match the trunc point pagelist 149 - */ 150 - int ceph_pagelist_truncate(struct ceph_pagelist *pl, 151 - struct ceph_pagelist_cursor *c) 152 - { 153 - struct page *page; 154 - 155 - if (pl != c->pl) 156 - return -EINVAL; 157 - ceph_pagelist_unmap_tail(pl); 158 - while (pl->head.prev != c->page_lru) { 159 - page = list_entry(pl->head.prev, struct page, lru); 160 - /* move from pagelist to reserve */ 161 - list_move_tail(&page->lru, &pl->free_list); 162 - ++pl->num_pages_free; 163 - } 164 - pl->room = c->room; 165 - if (!list_empty(&pl->head)) { 166 - page = list_entry(pl->head.prev, struct page, lru); 167 - pl->mapped_tail = kmap(page); 168 - } 169 - return 0; 170 - } 171 - EXPORT_SYMBOL(ceph_pagelist_truncate);