forked from luck/tmp_suning_uos_patched
cachefiles: remove two unused pagevecs.
These two have been unused since
commit c4d6d8dbf3
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>
This commit is contained in:
parent
3e1199dcad
commit
696382f938
|
@ -151,7 +151,6 @@ static void cachefiles_read_copier(struct fscache_operation *_op)
|
||||||
struct cachefiles_one_read *monitor;
|
struct cachefiles_one_read *monitor;
|
||||||
struct cachefiles_object *object;
|
struct cachefiles_object *object;
|
||||||
struct fscache_retrieval *op;
|
struct fscache_retrieval *op;
|
||||||
struct pagevec pagevec;
|
|
||||||
int error, max;
|
int error, max;
|
||||||
|
|
||||||
op = container_of(_op, struct fscache_retrieval, op);
|
op = container_of(_op, struct fscache_retrieval, op);
|
||||||
|
@ -160,8 +159,6 @@ static void cachefiles_read_copier(struct fscache_operation *_op)
|
||||||
|
|
||||||
_enter("{ino=%lu}", object->backer->d_inode->i_ino);
|
_enter("{ino=%lu}", object->backer->d_inode->i_ino);
|
||||||
|
|
||||||
pagevec_init(&pagevec, 0);
|
|
||||||
|
|
||||||
max = 8;
|
max = 8;
|
||||||
spin_lock_irq(&object->work_lock);
|
spin_lock_irq(&object->work_lock);
|
||||||
|
|
||||||
|
@ -396,7 +393,6 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op,
|
||||||
{
|
{
|
||||||
struct cachefiles_object *object;
|
struct cachefiles_object *object;
|
||||||
struct cachefiles_cache *cache;
|
struct cachefiles_cache *cache;
|
||||||
struct pagevec pagevec;
|
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
sector_t block0, block;
|
sector_t block0, block;
|
||||||
unsigned shift;
|
unsigned shift;
|
||||||
|
@ -427,8 +423,6 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op,
|
||||||
op->op.flags |= FSCACHE_OP_ASYNC;
|
op->op.flags |= FSCACHE_OP_ASYNC;
|
||||||
op->op.processor = cachefiles_read_copier;
|
op->op.processor = cachefiles_read_copier;
|
||||||
|
|
||||||
pagevec_init(&pagevec, 0);
|
|
||||||
|
|
||||||
/* we assume the absence or presence of the first block is a good
|
/* we assume the absence or presence of the first block is a good
|
||||||
* enough indication for the page as a whole
|
* enough indication for the page as a whole
|
||||||
* - TODO: don't use bmap() for this as it is _not_ actually good
|
* - TODO: don't use bmap() for this as it is _not_ actually good
|
||||||
|
|
Loading…
Reference in New Issue
Block a user