diff options
| -rw-r--r-- | fs/cachefiles/rdwr.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index 4b1fb5ca65b8..25e745b8eb1b 100644 --- a/fs/cachefiles/rdwr.c +++ b/fs/cachefiles/rdwr.c | |||
| @@ -151,7 +151,6 @@ static void cachefiles_read_copier(struct fscache_operation *_op) | |||
| 151 | struct cachefiles_one_read *monitor; | 151 | struct cachefiles_one_read *monitor; |
| 152 | struct cachefiles_object *object; | 152 | struct cachefiles_object *object; |
| 153 | struct fscache_retrieval *op; | 153 | struct fscache_retrieval *op; |
| 154 | struct pagevec pagevec; | ||
| 155 | int error, max; | 154 | int error, max; |
| 156 | 155 | ||
| 157 | op = container_of(_op, struct fscache_retrieval, op); | 156 | op = container_of(_op, struct fscache_retrieval, op); |
| @@ -160,8 +159,6 @@ static void cachefiles_read_copier(struct fscache_operation *_op) | |||
| 160 | 159 | ||
| 161 | _enter("{ino=%lu}", object->backer->d_inode->i_ino); | 160 | _enter("{ino=%lu}", object->backer->d_inode->i_ino); |
| 162 | 161 | ||
| 163 | pagevec_init(&pagevec, 0); | ||
| 164 | |||
| 165 | max = 8; | 162 | max = 8; |
| 166 | spin_lock_irq(&object->work_lock); | 163 | spin_lock_irq(&object->work_lock); |
| 167 | 164 | ||
| @@ -396,7 +393,6 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op, | |||
| 396 | { | 393 | { |
| 397 | struct cachefiles_object *object; | 394 | struct cachefiles_object *object; |
| 398 | struct cachefiles_cache *cache; | 395 | struct cachefiles_cache *cache; |
| 399 | struct pagevec pagevec; | ||
| 400 | struct inode *inode; | 396 | struct inode *inode; |
| 401 | sector_t block0, block; | 397 | sector_t block0, block; |
| 402 | unsigned shift; | 398 | unsigned shift; |
| @@ -427,8 +423,6 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op, | |||
| 427 | op->op.flags |= FSCACHE_OP_ASYNC; | 423 | op->op.flags |= FSCACHE_OP_ASYNC; |
| 428 | op->op.processor = cachefiles_read_copier; | 424 | op->op.processor = cachefiles_read_copier; |
| 429 | 425 | ||
| 430 | pagevec_init(&pagevec, 0); | ||
| 431 | |||
| 432 | /* we assume the absence or presence of the first block is a good | 426 | /* we assume the absence or presence of the first block is a good |
| 433 | * enough indication for the page as a whole | 427 | * enough indication for the page as a whole |
| 434 | * - TODO: don't use bmap() for this as it is _not_ actually good | 428 | * - TODO: don't use bmap() for this as it is _not_ actually good |
