From patchwork Tue Jan 25 20:11:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 506721 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 p0PKLgYn023633 for ; Tue, 25 Jan 2011 20:21:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075Ab1AYUVj (ORCPT ); Tue, 25 Jan 2011 15:21:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20817 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508Ab1AYUVj (ORCPT ); Tue, 25 Jan 2011 15:21:39 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0PKLcvP024402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 Jan 2011 15:21:38 -0500 Received: from localhost.localdomain (test1244.test.redhat.com [10.10.10.244]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p0PKLc3k023103 for ; Tue, 25 Jan 2011 15:21:38 -0500 From: Josef Bacik To: linux-btrfs@vger.kernel.org Subject: [PATCH] Btrfs: remove duplicate memset in prepare_pages Date: Tue, 25 Jan 2011 15:11:13 -0500 Message-Id: <1295986273-30308-1-git-send-email-josef@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 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]); Tue, 25 Jan 2011 20:21:44 +0000 (UTC) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index c0f312a..fd89c5c 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -788,7 +788,6 @@ static noinline int prepare_pages(struct btrfs_root *root, struct file *file, return err; } - memset(pages, 0, num_pages * sizeof(struct page *)); again: for (i = 0; i < num_pages; i++) { pages[i] = grab_cache_page(inode->i_mapping, index + i);