From patchwork Thu Apr 24 18:15:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weston Andros Adamson X-Patchwork-Id: 4053171 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CE37CBFF02 for ; Thu, 24 Apr 2014 18:15:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F04742034F for ; Thu, 24 Apr 2014 18:15:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0FEC020340 for ; Thu, 24 Apr 2014 18:15:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758298AbaDXSPk (ORCPT ); Thu, 24 Apr 2014 14:15:40 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:58098 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754261AbaDXSPj (ORCPT ); Thu, 24 Apr 2014 14:15:39 -0400 Received: by mail-ie0-f176.google.com with SMTP id rd18so2773098iec.35 for ; Thu, 24 Apr 2014 11:15:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lwnWWQ7htYsHkVZ+B7xx/5o5Vw5a78VKoHFNcTKTJck=; b=g8cT1Xi1l1HhP9KV2CBkcJDBLoKB1jOns9H1CC+GsK7D7l2A34Np0sQUjxpMh0ib7+ dkBtVqVBkAAC2Twa++RLRQj6SIYh25JdwjmLQ+qHkIPQcf0gr/HwnysW1h4Defv6L/F0 2YNroeTbuWNRbGtuFfQ/91lkVd5IVgCVfpiqn5opaBV6VxFbwdpL/XWjhw92n+91WM7q gZBdCnzfpZaeU86ZK+IsfAEuv5soUjuAF3PnT2ivhj2J6VCfoMLSUPIaRZLAaG+j9M10 hhgVRSWsT1dWqTUtCjJy0r/wS4rGaK3qPiiCsjQvNc822xIzQOf2cbVScOox86H/NtAD sx/Q== X-Gm-Message-State: ALoCoQmI0QpXPwVLkgc3h5W9JuCK6S/lZHPf0SsqOGkRGWp2tHsH0x787SJqJNLfcZ4fTNPO2T4Q X-Received: by 10.50.62.178 with SMTP id z18mr132572igr.49.1398363338393; Thu, 24 Apr 2014 11:15:38 -0700 (PDT) Received: from gavrio-wifi.robotsandstuff.fake (c-98-209-19-144.hsd1.mi.comcast.net. [98.209.19.144]) by mx.google.com with ESMTPSA id lp4sm789824igb.12.2014.04.24.11.15.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Apr 2014 11:15:37 -0700 (PDT) From: Weston Andros Adamson To: trond.myklebust@primarydata.com Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson Subject: [PATCH 02/18 v2] nfs: clean up PG_* flags Date: Thu, 24 Apr 2014 14:15:12 -0400 Message-Id: <1398363328-7100-3-git-send-email-dros@primarydata.com> X-Mailer: git-send-email 1.8.5.2 (Apple Git-48) In-Reply-To: <1398363328-7100-1-git-send-email-dros@primarydata.com> References: <1398363328-7100-1-git-send-email-dros@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unused flags PG_NEED_COMMIT and PG_NEED_RESCHED. Add comments describing how each flag is used. Signed-off-by: Weston Andros Adamson --- include/linux/nfs_page.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index dc5e71c..91ac4d4 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -22,12 +22,10 @@ * Valid flags for a dirty buffer */ enum { - PG_BUSY = 0, - PG_MAPPED, - PG_CLEAN, - PG_NEED_COMMIT, - PG_NEED_RESCHED, - PG_COMMIT_TO_DS, + PG_BUSY = 0, /* nfs_{un}lock_request */ + PG_MAPPED, /* page private set for buffered io */ + PG_CLEAN, /* write succeeded */ + PG_COMMIT_TO_DS, /* used by pnfs layouts */ }; struct nfs_inode;