From patchwork Wed Mar 30 00:57:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsutomu Itoh X-Patchwork-Id: 672922 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2U0wgL0029437 for ; Wed, 30 Mar 2011 00:58:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755291Ab1C3A6j (ORCPT ); Tue, 29 Mar 2011 20:58:39 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:49930 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753889Ab1C3A6i (ORCPT ); Tue, 29 Mar 2011 20:58:38 -0400 Received: from m1.gw.fujitsu.co.jp (unknown [10.0.50.71]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 1D7C73EE0AE for ; Wed, 30 Mar 2011 09:58:36 +0900 (JST) Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 0399445DE58 for ; Wed, 30 Mar 2011 09:58:36 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id DE3B945DE54 for ; Wed, 30 Mar 2011 09:58:35 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id D1C9B1DB8046 for ; Wed, 30 Mar 2011 09:58:35 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.240.81.145]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 9DC5F1DB803F for ; Wed, 30 Mar 2011 09:58:35 +0900 (JST) Received: from m105.css.fujitsu.com (m105 [127.0.0.1]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id 252A3548314; Wed, 30 Mar 2011 09:58:35 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.101.86]) by m105.s.css.fujitsu.com (Postfix) with ESMTP id A16C2548312; Wed, 30 Mar 2011 09:58:34 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.4.0 Received: from T-ITOH1[10.124.101.86] by T-ITOH1 (FujitsuOutboundMailChecker v1.4.0/9992[10.124.101.86]); Wed, 30 Mar 2011 09:57:32 +0900 (JST) Message-ID: <4D927FF3.6050300@jp.fujitsu.com> Date: Wed, 30 Mar 2011 09:57:23 +0900 From: Tsutomu Itoh User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Linux Btrfs CC: Chris Mason Subject: [PATCH] Btrfs: fix compiler warning in file.c 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.6 (demeter1.kernel.org [140.211.167.41]); Wed, 30 Mar 2011 00:58:42 +0000 (UTC) diff -urNp linux-2.6.39-rc1/fs/btrfs/file.c linux-2.6.39-rc1.new/fs/btrfs/file.c --- linux-2.6.39-rc1/fs/btrfs/file.c 2011-03-30 04:09:47.000000000 +0900 +++ linux-2.6.39-rc1.new/fs/btrfs/file.c 2011-03-30 09:41:49.000000000 +0900 @@ -906,7 +906,7 @@ static noinline ssize_t __btrfs_buffered unsigned long last_index; size_t num_written = 0; int nrptrs; - int ret; + int ret = 0; nrptrs = min((iov_iter_count(i) + PAGE_CACHE_SIZE - 1) / PAGE_CACHE_SIZE, PAGE_CACHE_SIZE /