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.

nfs/blocklayout: Fix compilation error (`make W=1`) in bl_write_pagelist()

Clang compiler is not happy about set but unused variable
(when dprintk() is no-op):

.../blocklayout/blocklayout.c:384:9: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable]

Remove a leftover from the previous cleanup.

Fixes: 3a6fd1f004fc ("pnfs/blocklayout: remove read-modify-write handling in bl_write_pagelist")
Acked-by: Anna Schumaker <anna.schumkaer@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Andy Shevchenko and committed by
Chuck Lever
f83c8dda 45cd458b

+1 -3
+1 -3
fs/nfs/blocklayout/blocklayout.c
··· 381 381 sector_t isect, extent_length = 0; 382 382 struct parallel_io *par = NULL; 383 383 loff_t offset = header->args.offset; 384 - size_t count = header->args.count; 385 384 struct page **pages = header->args.pages; 386 385 int pg_index = header->args.pgbase >> PAGE_SHIFT; 387 386 unsigned int pg_len; 388 387 struct blk_plug plug; 389 388 int i; 390 389 391 - dprintk("%s enter, %zu@%lld\n", __func__, count, offset); 390 + dprintk("%s enter, %u@%lld\n", __func__, header->args.count, offset); 392 391 393 392 /* At this point, header->page_aray is a (sequential) list of nfs_pages. 394 393 * We want to write each, and if there is an error set pnfs_error ··· 428 429 } 429 430 430 431 offset += pg_len; 431 - count -= pg_len; 432 432 isect += (pg_len >> SECTOR_SHIFT); 433 433 extent_length -= (pg_len >> SECTOR_SHIFT); 434 434 }