| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2010 Cisco Systems, Inc. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * Copyright (c) 2009 Rising Tide, Inc. |
|---|
| 10 | 11 | * Copyright (c) 2009 Linux-iSCSI.org |
|---|
| 11 | 12 | * Copyright (c) 2009 Nicholas A. Bellinger <nab@linux-iscsi.org> |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 14 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 15 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 18 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 19 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 20 | | - * more details. |
|---|
| 21 | | - * |
|---|
| 22 | | - * You should have received a copy of the GNU General Public License along with |
|---|
| 23 | | - * this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 24 | | - * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. |
|---|
| 25 | 13 | */ |
|---|
| 26 | 14 | |
|---|
| 27 | 15 | /* XXX TBD some includes may be extraneous */ |
|---|
| .. | .. |
|---|
| 148 | 136 | page, off_in_page, tlen); |
|---|
| 149 | 137 | fr_len(fp) += tlen; |
|---|
| 150 | 138 | fp_skb(fp)->data_len += tlen; |
|---|
| 151 | | - fp_skb(fp)->truesize += |
|---|
| 152 | | - PAGE_SIZE << compound_order(page); |
|---|
| 139 | + fp_skb(fp)->truesize += page_size(page); |
|---|
| 153 | 140 | } else { |
|---|
| 154 | 141 | BUG_ON(!page); |
|---|
| 155 | 142 | from = kmap_atomic(page + (mem_off >> PAGE_SHIFT)); |
|---|
| .. | .. |
|---|
| 234 | 221 | ep = fc_seq_exch(seq); |
|---|
| 235 | 222 | lport = ep->lp; |
|---|
| 236 | 223 | if (cmd->was_ddp_setup) { |
|---|
| 237 | | - BUG_ON(!ep); |
|---|
| 238 | 224 | BUG_ON(!lport); |
|---|
| 239 | 225 | /* |
|---|
| 240 | 226 | * Since DDP (Large Rx offload) was setup for this request, |
|---|