2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

pNFS/blocklayout: Remove a couple of unused variables

Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
Trond Myklebust 2014-09-12 13:25:14 -04:00
parent 84c9dee3ad
commit 164ae58c3c
2 changed files with 1 additions and 4 deletions

View File

@ -694,7 +694,6 @@ bl_return_range(struct pnfs_layout_hdr *lo,
{ {
struct pnfs_block_layout *bl = BLK_LO2EXT(lo); struct pnfs_block_layout *bl = BLK_LO2EXT(lo);
sector_t offset = range->offset >> SECTOR_SHIFT, end; sector_t offset = range->offset >> SECTOR_SHIFT, end;
int err;
if (range->offset % 8) { if (range->offset % 8) {
dprintk("%s: offset %lld not block size aligned\n", dprintk("%s: offset %lld not block size aligned\n",
@ -714,7 +713,7 @@ bl_return_range(struct pnfs_layout_hdr *lo,
end = round_down(NFS4_MAX_UINT64, PAGE_SIZE); end = round_down(NFS4_MAX_UINT64, PAGE_SIZE);
} }
err = ext_tree_remove(bl, range->iomode & IOMODE_RW, offset, end); ext_tree_remove(bl, range->iomode & IOMODE_RW, offset, end);
} }
static int static int

View File

@ -165,7 +165,6 @@ __ext_tree_remove(struct rb_root *root, sector_t start, sector_t end)
{ {
struct pnfs_block_extent *be; struct pnfs_block_extent *be;
sector_t len1 = 0, len2 = 0; sector_t len1 = 0, len2 = 0;
sector_t orig_f_offset;
sector_t orig_v_offset; sector_t orig_v_offset;
sector_t orig_len; sector_t orig_len;
@ -175,7 +174,6 @@ __ext_tree_remove(struct rb_root *root, sector_t start, sector_t end)
if (be->be_f_offset >= end) if (be->be_f_offset >= end)
return 0; return 0;
orig_f_offset = be->be_f_offset;
orig_v_offset = be->be_v_offset; orig_v_offset = be->be_v_offset;
orig_len = be->be_length; orig_len = be->be_length;