From patchwork Thu Mar 25 12:33:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miao Xie X-Patchwork-Id: 88215 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2PCXi1I030850 for ; Thu, 25 Mar 2010 12:33:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635Ab0CYMdn (ORCPT ); Thu, 25 Mar 2010 08:33:43 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:65296 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750903Ab0CYMdn (ORCPT ); Thu, 25 Mar 2010 08:33:43 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 583CB170028; Thu, 25 Mar 2010 20:33:42 +0800 (CST) Received: from fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id o2PCWMfv006010; Thu, 25 Mar 2010 20:32:23 +0800 Received: from [127.0.0.1] (unknown [10.167.141.211]) by fnst.cn.fujitsu.com (Postfix) with ESMTPA id 2B5EFDC220; Thu, 25 Mar 2010 20:36:08 +0800 (CST) Message-ID: <4BAB5836.8020302@cn.fujitsu.com> Date: Thu, 25 Mar 2010 20:33:58 +0800 From: Miao Xie Reply-To: miaox@cn.fujitsu.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Chris Mason CC: Linux Btrfs Subject: [PATCH 10/18] btrfs: Remove unnecessary variant processing in submit_one_bio() Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 25 Mar 2010 12:33:45 +0000 (UTC) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 3194c79..dbbf9ca 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1905,11 +1905,6 @@ static int submit_one_bio(int rw, struct bio *bio, int mirror_num, struct bio_vec *bvec = bio->bi_io_vec + bio->bi_vcnt - 1; struct page *page = bvec->bv_page; struct extent_io_tree *tree = bio->bi_private; - u64 start; - u64 end; - - start = ((u64)page->index << PAGE_CACHE_SHIFT) + bvec->bv_offset; - end = start + bvec->bv_len - 1; bio->bi_private = NULL;