Skip to content

Commit 696382f

Browse files
neilbrowndhowells
authored andcommitted
cachefiles: remove two unused pagevecs.
These two have been unused since commit c4d6d8d CacheFiles: Fix the marking of cached pages in 3.8. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: David Howells <dhowells@redhat.com>
1 parent 3e1199d commit 696382f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/cachefiles/rdwr.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ static void cachefiles_read_copier(struct fscache_operation *_op)
151151
struct cachefiles_one_read *monitor;
152152
struct cachefiles_object *object;
153153
struct fscache_retrieval *op;
154-
struct pagevec pagevec;
155154
int error, max;
156155

157156
op = container_of(_op, struct fscache_retrieval, op);
@@ -160,8 +159,6 @@ static void cachefiles_read_copier(struct fscache_operation *_op)
160159

161160
_enter("{ino=%lu}", object->backer->d_inode->i_ino);
162161

163-
pagevec_init(&pagevec, 0);
164-
165162
max = 8;
166163
spin_lock_irq(&object->work_lock);
167164

@@ -396,7 +393,6 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op,
396393
{
397394
struct cachefiles_object *object;
398395
struct cachefiles_cache *cache;
399-
struct pagevec pagevec;
400396
struct inode *inode;
401397
sector_t block0, block;
402398
unsigned shift;
@@ -427,8 +423,6 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op,
427423
op->op.flags |= FSCACHE_OP_ASYNC;
428424
op->op.processor = cachefiles_read_copier;
429425

430-
pagevec_init(&pagevec, 0);
431-
432426
/* we assume the absence or presence of the first block is a good
433427
* enough indication for the page as a whole
434428
* - TODO: don't use bmap() for this as it is _not_ actually good

0 commit comments

Comments
 (0)