From: Nicholas A. Bellinger Date: Sat, 26 Sep 2015 16:38:55 -0700 Subject: [Cluster-devel] [PATCH 01/23] configfs: add show and store methods to struct configfs_attribute In-Reply-To: <1443189000-13398-2-git-send-email-hch@lst.de> References: <1443189000-13398-1-git-send-email-hch@lst.de> <1443189000-13398-2-git-send-email-hch@lst.de> Message-ID: <1443310735.7042.25.camel@haakon3.risingtidesystems.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, 2015-09-25 at 06:49 -0700, Christoph Hellwig wrote: > Add methods to struct configfs_attribute to directly show and store > attributes without adding boilerplate code to every user. In addition > to the methods this also adds 3 helper macros to define read/write, > read-only and write-only attributes with a single line of code. > > Signed-off-by: Christoph Hellwig > --- > fs/configfs/file.c | 17 ++++++++++++----- > include/linux/configfs.h | 27 +++++++++++++++++++++++++++ > 2 files changed, 39 insertions(+), 5 deletions(-) > Reviewed-by: Nicholas Bellinger