From patchwork Tue Apr 22 21:29:09 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: 4036051 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 C61D69F1F4 for ; Tue, 22 Apr 2014 21:29:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C62B12018A for ; Tue, 22 Apr 2014 21:29:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40388201EF for ; Tue, 22 Apr 2014 21:29:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758792AbaDVV3J (ORCPT ); Tue, 22 Apr 2014 17:29:09 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:56235 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758649AbaDVV27 (ORCPT ); Tue, 22 Apr 2014 17:28:59 -0400 Received: by mail-ie0-f176.google.com with SMTP id rd18so68115iec.35 for ; Tue, 22 Apr 2014 14:28:57 -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=ghSNGz01a5GZM0t8/szQ6c3+DDLTa4mjSDzlrtZb7CE=; b=Mxmf4rS1mwePv+JhVG+QKxoNGAb1d0MRVkXO4k7DfdLD1n+1HHj2acLOk6emBnZnnu LsGeewASk4s2SFUzokEdpxLzAWseg9eXwIImS30avvwGZphJOJlinczjxcQ9G76lWDjP qxKWs2h6Uw9J2e9W/nXboSjbqOEMwMqMmoBTIo7sgteYbqKL/aThdQEidYRsVunY0Yhg U6pgzgmYgOIv4nGDOk7YCc68dpCiyLOHvkrgULmLiAPjvyZF5lLz9Uhkd7ajinXN82w9 7q1CAVzoLMRUfE4uxPreiKUn3RBbGH5V83BxN2y9B6Zy+PFN1iLIV1QBqQSTSs2MJni3 geRQ== X-Gm-Message-State: ALoCoQlfI78FOCLA7wzLE9ALp9HAK/PhVLQVwonk4ebw0I+qtoELHgHRoNqku48x5fDFRGzyvbOx X-Received: by 10.50.253.194 with SMTP id ac2mr256352igd.41.1398202137732; Tue, 22 Apr 2014 14:28:57 -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 j9sm31115582igu.10.2014.04.22.14.28.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 22 Apr 2014 14:28:56 -0700 (PDT) From: Weston Andros Adamson To: trond.myklebust@primarydata.com Cc: linux-nfs@vger.kernel.org, Weston Andros Adamson Subject: [PATCH 01/17] nfs: clean up PG_* flags Date: Tue, 22 Apr 2014 17:29:09 -0400 Message-Id: <1398202165-78897-2-git-send-email-dros@primarydata.com> X-Mailer: git-send-email 1.8.5.2 (Apple Git-48) In-Reply-To: <1398202165-78897-1-git-send-email-dros@primarydata.com> References: <1398202165-78897-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 92ce578..93c7293 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;