Skip to content

Pass xattr handler to xattr handler operations

Andreas Gruenbacher linux-f2fs-devel linux-fsdevel linux-mtd lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 0 repliesNew
  2. v27 patches 8 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ubifs: Remove unused security xattr handlerfs/ubifs/super.c fs/ubifs/ubifs.h fs/ubifs/xattr.c+0 -420 replies
2/7hfsplus: Remove unused xattr handler list operationsfs/hfsplus/xattr.c fs/hfsplus/xattr_security.c fs/hfsplus/xattr_trusted.c +1 more+0 -440 replies
3/7jffs2: Add missing capability check for listing trusted xattrsfs/jffs2/xattr_trusted.c+3 -00 replies
4/7xattr handlers: Pass handler to operations instead of flagsfs/9p/acl.c fs/9p/xattr_security.c fs/9p/xattr_trusted.c +30 more+315 -2330 replies
5/79p: xattr simplificationsfs/9p/Makefile fs/9p/acl.c fs/9p/xattr.c +6 more+74 -2990 replies
6/7squashfs: xattr simplificationsfs/squashfs/xattr.c+31 -590 replies
7/7f2fs: xattr simplificationsfs/f2fs/xattr.c+3 -120 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigRichard Weinberger
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] Pass xattr handler to xattr handler operations

This is version three 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.

The patch queue is available in git form here:

git://git.kernel.org/pub/scm/linux/kernel/git/agruen/linux \
xattr-wip

Al, can this please be merged?

Thanks,
Andreas

Changes from version 2:

* xattr_full_name: Improve kdoc comment and remove commented-out assert.

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                   | 39 +++++++++++++++-----
 fs/xfs/xfs_xattr.c           | 10 +++---
 include/linux/xattr.h        | 18 ++++++----
 39 files changed, 385 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
Signature · 1 line
2.5.0