linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Gruenbacher <agruenba@redhat.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>,
	Christoph Hellwig <hch@infradead.org>,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	Mark Fasheh <mfasheh@suse.com>, Joel Becker <jlbec@evilplan.org>,
	ocfs2-devel@oss.oracle.com
Subject: [PATCH v2 0/7] Pass xattr handler to xattr handler operations
Date: Tue, 22 Sep 2015 14:26:45 +0200	[thread overview]
Message-ID: <1442924812-9384-1-git-send-email-agruenba@redhat.com> (raw)

This is version two of the xattr cleanups.  The main change in the series
is to pass struct xattr_handler down to the xattr handler operations.  In
addition, a few other small problems in the code are fixed.

What's missing is a fix for ocfs2's listxattr operation: ocfs2 implements
list xattr handler operations which should be but actually are not used
from anywhere.  Mark Fasheh is aware of this.

Thanks for the initial feedback.  Are any more changes needed?

Thanks,
Andreas


Changes from version 1:

 * The xattr handler is passed to xattr handler operations as the first
   instead of the last argument.

 * The patches are split per filesystem.

 * The 9p patch introduces an xattr_full_name() helper.  (That helper
   currently isn't used anywhere else.)


Andreas Gruenbacher (7):
  ubifs: Remove unused security xattr handler
  hfsplus: Remove unused xattr handler list operations
  jffs2: Add missing capability check for listing trusted xattrs
  xattr handlers: Pass handler to operations instead of flags
  9p: xattr simplifications
  squashfs: xattr simplifications
  f2fs: xattr simplifications

 fs/9p/Makefile               |  5 +--
 fs/9p/acl.c                  | 65 +++++++--------------------------
 fs/9p/xattr.c                | 42 ++++++++++++++++++++++
 fs/9p/xattr.h                |  3 --
 fs/9p/xattr_security.c       | 80 -----------------------------------------
 fs/9p/xattr_trusted.c        | 80 -----------------------------------------
 fs/9p/xattr_user.c           | 80 -----------------------------------------
 fs/ext2/xattr.c              |  7 ++--
 fs/ext2/xattr_security.c     | 15 ++++----
 fs/ext2/xattr_trusted.c      | 15 ++++----
 fs/ext2/xattr_user.c         | 15 ++++----
 fs/ext4/xattr.c              |  7 ++--
 fs/ext4/xattr_security.c     | 15 ++++----
 fs/ext4/xattr_trusted.c      | 15 ++++----
 fs/ext4/xattr_user.c         | 15 ++++----
 fs/f2fs/xattr.c              | 60 +++++++++++++++----------------
 fs/gfs2/xattr.c              | 13 ++++---
 fs/hfsplus/xattr.c           | 21 ++++-------
 fs/hfsplus/xattr_security.c  | 21 ++++-------
 fs/hfsplus/xattr_trusted.c   | 21 ++++-------
 fs/hfsplus/xattr_user.c      | 21 ++++-------
 fs/jffs2/security.c          | 16 +++++----
 fs/jffs2/xattr.c             |  9 ++---
 fs/jffs2/xattr_trusted.c     | 19 ++++++----
 fs/jffs2/xattr_user.c        | 16 +++++----
 fs/nfs/nfs4proc.c            | 34 ++++++++++--------
 fs/ocfs2/xattr.c             | 45 +++++++++++++----------
 fs/posix_acl.c               | 28 +++++++--------
 fs/reiserfs/xattr.c          | 16 ++++-----
 fs/reiserfs/xattr_security.c | 13 +++----
 fs/reiserfs/xattr_trusted.c  | 13 +++----
 fs/reiserfs/xattr_user.c     | 13 +++----
 fs/squashfs/xattr.c          | 86 +++++++++++++++++---------------------------
 fs/ubifs/super.c             |  1 -
 fs/ubifs/ubifs.h             |  1 -
 fs/ubifs/xattr.c             | 40 ---------------------
 fs/xattr.c                   | 38 +++++++++++++++-----
 fs/xfs/xfs_xattr.c           | 10 +++---
 include/linux/xattr.h        | 18 ++++++----
 39 files changed, 384 insertions(+), 648 deletions(-)
 delete mode 100644 fs/9p/xattr_security.c
 delete mode 100644 fs/9p/xattr_trusted.c
 delete mode 100644 fs/9p/xattr_user.c

-- 
2.4.3

             reply	other threads:[~2015-09-22 12:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22 12:26 Andreas Gruenbacher [this message]
2015-09-22 12:26 ` [PATCH v2 1/7] ubifs: Remove unused security xattr handler Andreas Gruenbacher
2015-09-22 12:41   ` Richard Weinberger
2015-09-22 12:47     ` Andreas Gruenbacher
2015-09-22 12:26 ` [PATCH v2 2/7] hfsplus: Remove unused xattr handler list operations Andreas Gruenbacher
2015-10-04  6:24   ` Christoph Hellwig
2015-09-22 12:26 ` [PATCH v2 3/7] jffs2: Add missing capability check for listing trusted xattrs Andreas Gruenbacher
2015-10-04  6:25   ` Christoph Hellwig
2015-09-22 12:26 ` [PATCH v2 4/7] xattr handlers: Pass handler to operations instead of flags Andreas Gruenbacher
2015-10-04  6:25   ` Christoph Hellwig
2015-09-22 12:26 ` [PATCH v2 5/7] 9p: xattr simplifications Andreas Gruenbacher
2015-10-04  6:27   ` Christoph Hellwig
2015-09-22 12:26 ` [PATCH v2 6/7] squashfs: " Andreas Gruenbacher
2015-10-04  6:29   ` Christoph Hellwig
2015-10-04 13:10     ` Andreas Grünbacher
2015-09-22 12:26 ` [PATCH v2 7/7] f2fs: " Andreas Gruenbacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1442924812-9384-1-git-send-email-agruenba@redhat.com \
    --to=agruenba@redhat.com \
    --cc=hch@infradead.org \
    --cc=jlbec@evilplan.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfasheh@suse.com \
    --cc=ocfs2-devel@oss.oracle.com \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).