]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - mm/shmem.c
tmpfs: Use xattr handler infrastructure
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 2 Dec 2015 13:44:38 +0000 (14:44 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Dec 2015 02:34:15 +0000 (21:34 -0500)
commitaa7c5241c380adb7e6913549292c1b83c1469bda
tree4247a21eb6370450bfa78ea6f513e560ce334900
parent9172abbcd371f2f62903087bbd228f11d380b7b4
tmpfs: Use xattr handler infrastructure

Use the VFS xattr handler infrastructure and get rid of similar code in
the filesystem.  For implementing shmem_xattr_handler_set, we need a
version of simple_xattr_set which removes the attribute when value is
NULL.  Use this to implement kernfs_iop_removexattr as well.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: linux-mm@kvack.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/kernfs/inode.c
fs/xattr.c
include/linux/xattr.h
mm/shmem.c