mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
nfs/blocklayout: Fix compilation error (make W=1) in bl_write_pagelist()
[ Upstream commitf83c8dda45] 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:3a6fd1f004("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7e546d27a3
commit
052d9b1648
@@ -404,14 +404,13 @@ bl_write_pagelist(struct nfs_pgio_header *header, int sync)
|
||||
sector_t isect, extent_length = 0;
|
||||
struct parallel_io *par = NULL;
|
||||
loff_t offset = header->args.offset;
|
||||
size_t count = header->args.count;
|
||||
struct page **pages = header->args.pages;
|
||||
int pg_index = header->args.pgbase >> PAGE_SHIFT;
|
||||
unsigned int pg_len;
|
||||
struct blk_plug plug;
|
||||
int i;
|
||||
|
||||
dprintk("%s enter, %zu@%lld\n", __func__, count, offset);
|
||||
dprintk("%s enter, %u@%lld\n", __func__, header->args.count, offset);
|
||||
|
||||
/* At this point, header->page_aray is a (sequential) list of nfs_pages.
|
||||
* We want to write each, and if there is an error set pnfs_error
|
||||
@@ -453,7 +452,6 @@ bl_write_pagelist(struct nfs_pgio_header *header, int sync)
|
||||
}
|
||||
|
||||
offset += pg_len;
|
||||
count -= pg_len;
|
||||
isect += (pg_len >> SECTOR_SHIFT);
|
||||
extent_length -= (pg_len >> SECTOR_SHIFT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user