author: Gao Xiang <hsiangkao@redhat.com> 2021-04-10 03:06:30 +0800
committer: Gao Xiang <hsiangkao@redhat.com> 2021-04-10 03:19:59 +0800
commit: 524887347fcb67faa0a63dd3c4c02ab48d4968d4
parent: 54e0b6c873dcbd02b9b479c893f6fba8fcbc6a9c
Commit Summary:
Diffstat:
1 file changed, 0 insertions, 11 deletions
diff --git a/fs/erofs/utils.c b/fs/erofs/utils.c
index de9986d2f82f..6758c5b19f7c 100644
--- a/fs/erofs/utils.c
+++ b/fs/erofs/utils.c
@@ -21,18 +21,6 @@ struct page *erofs_allocpage(struct list_head *pool, gfp_t gfp)
return page;
}
-#if (EROFS_PCPUBUF_NR_PAGES > 0)
-static struct {
- u8 data[PAGE_SIZE * EROFS_PCPUBUF_NR_PAGES];
-} ____cacheline_aligned_in_smp erofs_pcpubuf[NR_CPUS];
-
-void *erofs_get_pcpubuf(unsigned int pagenr)
-{
- preempt_disable();
- return &erofs_pcpubuf[smp_processor_id()].data[pagenr * PAGE_SIZE];
-}
-#endif
-
#ifdef CONFIG_EROFS_FS_ZIP
/* global shrink count (for all mounted EROFS instances) */
static atomic_long_t erofs_global_shrink_cnt;