From patchwork Thu May 15 15:56:41 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: 4183371 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9B11D9F271 for ; Thu, 15 May 2014 15:57:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D779B201FE for ; Thu, 15 May 2014 15:57:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F135F201C8 for ; Thu, 15 May 2014 15:57:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755135AbaEOP5K (ORCPT ); Thu, 15 May 2014 11:57:10 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:57564 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752993AbaEOP5I (ORCPT ); Thu, 15 May 2014 11:57:08 -0400 Received: by mail-ie0-f172.google.com with SMTP id as1so1220896iec.31 for ; Thu, 15 May 2014 08:57:07 -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=Kl0gxpeJMofwetzsuILEUrUqcqGcymre6AK5BLQDDb0=; b=asU1JxFD5HZYzjGEOuUPkuKCPz3YmfvrpT5I1k4u7Fdpz+eV9IrRTDhg60TtGwQouk 6Mao/n3i5Ezo6YlGTdOGTA5iSyQlUPwB2dYM1cr9XJ9xKF9hj2mhUW0qNINo8e0pzBVd h7Nsyn1Gh1d2qJMUpYoV7M6gqO1aEv0lFtz9lBd7Blo3M2/CkCi3LAmmTMfo3NI9pR7d ierLJMQykZvnbrdZEv4Xhae3YrkztpWq2evcxG3c7f6ayTKWeByhw1G81O3qMNRL/J87 q31UZXoFsnVE/orPZIUri84Wp+Fx840fFNJ3sdS4v/kXHRjb9rBNYCg6Flq774hXUhpv ur1w== X-Gm-Message-State: ALoCoQkv/FRATVC3oKBUVpaXew4yOm6HA8PsBsS47qmwhmJBtt5b+cjMyKJa2T9qRb37Pu9DlfQR X-Received: by 10.42.78.136 with SMTP id n8mr10049820ick.28.1400169427573; Thu, 15 May 2014 08:57:07 -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 jf5sm13964856igb.19.2014.05.15.08.57.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 May 2014 08:57:06 -0700 (PDT) From: Weston Andros Adamson To: trond.myklebust@primarydata.com Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson Subject: [PATCH v3 02/18] nfs: clean up PG_* flags Date: Thu, 15 May 2014 11:56:41 -0400 Message-Id: <1400169417-28245-3-git-send-email-dros@primarydata.com> X-Mailer: git-send-email 1.8.5.2 (Apple Git-48) In-Reply-To: <1400169417-28245-1-git-send-email-dros@primarydata.com> References: <1400169417-28245-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 c6a587f..eb2eb63 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;