[git pull] vfs pile 2 (misc)

From: Al Viro
Date: Sat Oct 08 2016 - 13:17:32 EST


Assorted misc bits and pieces; there are several single-topic branches
left after that (rename2 series from Miklos, current_time series from
Deepa Dinamani, xattr series from Andreas, uaccess stuff from from me)
and I'd prefer to send those separately.

This stuff has a couple of conflicts with mainline - one in
lustre (%ud -> %uz in mainline, switch to %pD in my tree), another in
fs/fuse/dir.c (Jan's dentry propagation to fuse_do_setattr() vs.
fuse_setattr() changes from fuse tree). I've pushed my variant of
conflict resolution into #merge-candidate, but IMO both conflicts are
trivial.

The following changes since commit 08895a8b6b06ed2323cd97a36ee40a116b3db8ed:

Linux 4.8-rc8 (2016-09-25 18:47:13 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc

for you to fetch changes up to e55f1d1d13e7f1c364672d667d78fd1f640ab9f9:

Merge remote-tracking branch 'jk/vfs' into work.misc (2016-10-08 11:06:08 -0400)

----------------------------------------------------------------
Aihua Zhang (1):
fsnotify: support overlayfs

Al Viro (14):
iget_locked et.al.: make sure we don't return bad inodes
orangefs: use %pd/%pD
iwlwifi: use %pd
gpu: use %pd
lustre: use %pD
parisc: use %pD
get rid of separate multipage fault-in primitives
cifs: don't use memcpy() to copy struct iov_iter
cifs: get rid of unused arguments of CIFSSMBWrite()
proc: switch auxv to use of __mem_open()
Merge branch 'work.iget' into work.misc
Merge branch 'work.const-qstr' into work.misc
Merge remote-tracking branch 'ovl/misc' into work.misc
Merge remote-tracking branch 'jk/vfs' into work.misc

Alexey Dobriyan (2):
fs/file: more unsigned file descriptors
proc: unsigned file descriptors

Andreas Gruenbacher (2):
posix_acl: xattr representation cleanups
posix_acl: uapi header split

Arnd Bergmann (1):
compat: remove compat_printk()

David Howells (1):
cachefiles: Fix attempt to read i_blocks after deleting file [ver #2]

Eric Biggers (1):
fs/buffer.c: make __getblk_slow() static

Jan Kara (6):
posix_acl: Clear SGID bit when setting file permissions
xfs: Propagate dentry down to inode_change_ok()
ceph: Propagate dentry down to inode_change_ok()
fuse: Propagate dentry down to inode_change_ok()
fs: Give dentry to inode_change_ok() instead of inode
fs: Avoid premature clearing of capabilities

Miklos Szeredi (11):
ima: use file_dentry()
vfs: move permission checking into notify_change() for utimes(NULL)
vfs: update ovl inode before relatime check
locks: fix file locking on overlayfs
vfs: make argument of d_real_inode() const
vfs: do get_write_access() on upper layer of overlayfs
btrfs: use filemap_check_errors()
f2fs: use filemap_check_errors()
posix_acl: don't ignore return value of posix_acl_create_masq()
cifs: don't use ->d_time
vfat: don't use ->d_time

Mikulas Patocka (1):
hpfs: support FIEMAP

Rasmus Villemoes (2):
fs/internal.h: add const to ns_dentry_operations declaration
fs/aio.c: eliminate redundant loads in put_aio_ring_file

Shawn Lin (1):
fs: compat: remove redundant check of nr_segs

Documentation/filesystems/porting | 4 +-
arch/parisc/kernel/cache.c | 2 +-
drivers/gpu/drm/armada/armada_gem.c | 2 +-
drivers/gpu/drm/drm_debugfs.c | 4 +-
drivers/gpu/drm/i915/i915_gem.c | 6 +-
drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 +-
drivers/gpu/drm/msm/msm_perf.c | 4 +-
drivers/gpu/drm/msm/msm_rd.c | 4 +-
drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c | 6 +-
.../net/wireless/intel/iwlwifi/mvm/debugfs-vif.c | 16 ++--
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 4 +-
drivers/staging/lustre/lustre/include/lustre_acl.h | 6 +-
drivers/staging/lustre/lustre/llite/file.c | 4 +-
drivers/staging/lustre/lustre/llite/llite_lib.c | 2 +-
drivers/staging/lustre/lustre/ptlrpc/wiretest.c | 44 +++++------
fs/9p/acl.c | 40 ++++------
fs/9p/vfs_inode.c | 2 +-
fs/9p/vfs_inode_dotl.c | 2 +-
fs/adfs/inode.c | 2 +-
fs/affs/inode.c | 2 +-
fs/aio.c | 9 ++-
fs/attr.c | 50 +++++++++---
fs/btrfs/acl.c | 6 +-
fs/btrfs/ctree.h | 1 -
fs/btrfs/file.c | 2 +-
fs/btrfs/inode.c | 17 +---
fs/btrfs/send.c | 2 +-
fs/btrfs/tree-log.c | 4 +-
fs/buffer.c | 3 +-
fs/cachefiles/interface.c | 8 +-
fs/cachefiles/internal.h | 3 +-
fs/cachefiles/namei.c | 8 +-
fs/ceph/acl.c | 11 ++-
fs/ceph/inode.c | 19 +++--
fs/cifs/cifsfs.h | 10 +++
fs/cifs/cifsproto.h | 3 +-
fs/cifs/cifssmb.c | 27 +++----
fs/cifs/dir.c | 6 +-
fs/cifs/file.c | 14 +---
fs/cifs/inode.c | 6 +-
fs/cifs/link.c | 2 +-
fs/compat.c | 16 +---
fs/ecryptfs/inode.c | 2 +-
fs/exofs/inode.c | 2 +-
fs/ext2/acl.c | 12 +--
fs/ext2/inode.c | 2 +-
fs/ext4/acl.c | 12 +--
fs/ext4/inode.c | 2 +-
fs/f2fs/acl.c | 6 +-
fs/f2fs/file.c | 2 +-
fs/f2fs/node.c | 7 +-
fs/fat/file.c | 2 +-
fs/fat/namei_vfat.c | 19 ++++-
fs/file.c | 34 ++++----
fs/fuse/dir.c | 7 +-
fs/fuse/file.c | 2 +-
fs/fuse/fuse_i.h | 2 +-
fs/gfs2/acl.c | 12 +--
fs/gfs2/inode.c | 2 +-
fs/hfs/inode.c | 2 +-
fs/hfsplus/inode.c | 2 +-
fs/hfsplus/posix_acl.c | 4 +-
fs/hostfs/hostfs_kern.c | 2 +-
fs/hpfs/file.c | 6 ++
fs/hpfs/inode.c | 2 +-
fs/hugetlbfs/inode.c | 2 +-
fs/inode.c | 74 ++++++++++++++---
fs/internal.h | 11 ++-
fs/jffs2/acl.c | 9 +--
fs/jffs2/fs.c | 2 +-
fs/jfs/acl.c | 6 +-
fs/jfs/file.c | 2 +-
fs/kernfs/inode.c | 2 +-
fs/libfs.c | 2 +-
fs/locks.c | 53 +++++++------
fs/logfs/file.c | 2 +-
fs/minix/file.c | 2 +-
fs/namei.c | 2 +-
fs/namespace.c | 2 +-
fs/ncpfs/inode.c | 2 +-
fs/nfsd/nfsproc.c | 8 +-
fs/nilfs2/inode.c | 2 +-
fs/ntfs/file.c | 2 +-
fs/ntfs/inode.c | 2 +-
fs/ocfs2/acl.c | 10 +--
fs/ocfs2/dlmfs/dlmfs.c | 2 +-
fs/ocfs2/file.c | 2 +-
fs/omfs/file.c | 2 +-
fs/open.c | 17 +++-
fs/orangefs/acl.c | 15 ++--
fs/orangefs/dir.c | 4 +-
fs/orangefs/file.c | 4 +-
fs/orangefs/inode.c | 14 ++--
fs/orangefs/namei.c | 44 +++++------
fs/orangefs/orangefs-debugfs.c | 4 +-
fs/overlayfs/inode.c | 2 +-
fs/overlayfs/super.c | 2 +-
fs/posix_acl.c | 60 ++++++++++----
fs/proc/base.c | 47 ++++++-----
fs/proc/fd.c | 8 +-
fs/proc/fd.h | 2 +-
fs/proc/generic.c | 2 +-
fs/proc/internal.h | 2 +-
fs/proc/proc_sysctl.c | 2 +-
fs/ramfs/file-nommu.c | 2 +-
fs/reiserfs/inode.c | 2 +-
fs/reiserfs/xattr_acl.c | 8 +-
fs/sysv/file.c | 2 +-
fs/ubifs/file.c | 2 +-
fs/udf/file.c | 2 +-
fs/ufs/inode.c | 2 +-
fs/utimes.c | 19 +----
fs/xfs/xfs_acl.c | 13 +--
fs/xfs/xfs_file.c | 2 +-
fs/xfs/xfs_inode.c | 2 +-
fs/xfs/xfs_ioctl.c | 2 +-
fs/xfs/xfs_iops.c | 92 ++++++++++++++--------
fs/xfs/xfs_iops.h | 3 +-
include/linux/compat.h | 1 -
include/linux/dcache.h | 5 +-
include/linux/fdtable.h | 6 +-
include/linux/fs.h | 22 ++++--
include/linux/fsnotify.h | 14 ++--
include/linux/pagemap.h | 54 +------------
include/linux/posix_acl.h | 23 +-----
include/linux/posix_acl_xattr.h | 31 ++------
include/linux/uio.h | 1 -
include/uapi/linux/Kbuild | 2 +
include/uapi/linux/fs.h | 1 +
include/uapi/linux/posix_acl.h | 39 +++++++++
include/uapi/linux/posix_acl_xattr.h | 38 +++++++++
kernel/sysctl.c | 14 +---
lib/iov_iter.c | 3 +-
mm/shmem.c | 2 +-
security/integrity/ima/ima_appraise.c | 4 +-
security/integrity/ima/ima_main.c | 2 +-
136 files changed, 737 insertions(+), 640 deletions(-)