From patchwork Thu May 10 06:21:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 10391245 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1ED9360153 for ; Thu, 10 May 2018 06:21:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AD9A2873A for ; Thu, 10 May 2018 06:21:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F36F8288AD; Thu, 10 May 2018 06:21:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E28228891 for ; Thu, 10 May 2018 06:21:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756391AbeEJGV2 (ORCPT ); Thu, 10 May 2018 02:21:28 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37500 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753693AbeEJGV1 (ORCPT ); Thu, 10 May 2018 02:21:27 -0400 Received: by mail-pg0-f68.google.com with SMTP id a13-v6so504687pgu.4 for ; Wed, 09 May 2018 23:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=bdWt2GvZLllV/P1AAt4nQfkBXpzPWT+vzL2OUWUebgc=; b=lcL6khaqk35V+MWyBnNzIXXpZcPapay5dZS7aBt2C+AyvkOiEr2Q+oM4+FpJg5q43g 0lGjgEch2rKqAl5ru3wfA8f3QQSsQo1gtRmQgrBfWg4I1DpAOZk3V54idCAIEZI11Z6H 0znii9xxkxuwnT2X9fi0Sl5kO5E/3FyctTu2iCBQdPhme4m3b9vLdgAWNLnzf9IHOrDj glGsIIDpy5UDDGGqVNM2aOHlH6zJwQqxtXlQJQPk/LqIxhiGB4unkY6CwHFFrm7sIevs W6JO4p/ltJXt9MtTuz8FP3dv5Iyn47f7ZfmlTpXrSMsUTxVCX17XtxBfLnXxh9zZPMDs vWQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=bdWt2GvZLllV/P1AAt4nQfkBXpzPWT+vzL2OUWUebgc=; b=iVS/Tf8kcjmYcm3teMxuSEvF0Pel5xa+oGloTrfLZRvnZDpH/SVlsHlC1P1nkBiF/h bhU1+fQEwXW4j5lcCenuBvM72OFeEqIBIBwfMwd1B1Yy7imDESLazVb8D5M/hN9rzJKW 4pqt5xH9zZlyQvaD1eri56VYIkZRWRVp3RKMiqaHNnHZ9dU8kCEqoMe1/XQly2PpF9Vl 3IgNCtgb4XhralJTGWlq3TjwRHcxhwdnTi3PJ2tOzICwTi9u+hYbLhrDuHyE5PCVsw87 k1wHcjOmcGh8v3O/deHKScQa3j8dNzJepMNfU2lUm+Vz0Kxs+EVf0CqTMUVOsPuK40bR Y0sQ== X-Gm-Message-State: ALKqPwfB9i99f6uROe0saeMHAjUSW4tRMDMMAh0S6ax/Faa50C9aN32q xwitAMoeNa9IsHY/gCvZCdumWhgrPPM= X-Google-Smtp-Source: AB8JxZr6b+1/mlr6WHMpFGUf4TN/RMAyIAFrC2arNiY+/FXYbPAi6OWpfJaBsatcQG/rlicpPS8KgA== X-Received: by 2002:a65:6692:: with SMTP id b18-v6mr117086pgw.124.1525933286415; Wed, 09 May 2018 23:21:26 -0700 (PDT) Received: from vader.thefacebook.com ([2620:10d:c090:180::1:65fc]) by smtp.gmail.com with ESMTPSA id 68-v6sm496206pff.35.2018.05.09.23.21.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 23:21:26 -0700 (PDT) From: Omar Sandoval To: linux-btrfs@vger.kernel.org Cc: kernel-team@fb.com, Chris Mason , Josef Bacik Subject: [PATCH 01/10] Btrfs: remove stale comment referencing vmtruncate() Date: Wed, 9 May 2018 23:21:02 -0700 Message-Id: X-Mailer: git-send-email 2.17.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Omar Sandoval Commit a41ad394a03b ("Btrfs: convert to the new truncate sequence") changed vmtruncate() to truncate_setsize() but didn't update the comment above it. truncate_setsize() never fails (the IS_SWAPFILE() check happens elsewhere), so remove the comment. Signed-off-by: Omar Sandoval --- fs/btrfs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d241285a0d2a..fef8dbb6a93f 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -5106,7 +5106,6 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr) if (ret) return ret; - /* we don't support swapfiles, so vmtruncate shouldn't fail */ truncate_setsize(inode, newsize); /* Disable nonlocked read DIO to avoid the end less truncate */