Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 3 Jul 2021 18:41:14 +0000 (11:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 3 Jul 2021 18:41:14 +0000 (11:41 -0700)
Pull vfs name lookup updates from Al Viro:
 "Small namei.c patch series, mostly to simplify the rules for nameidata
  state. It's actually from the previous cycle - but I didn't post it
  for review in time...

  Changes visible outside of fs/namei.c: file_open_root() calling
  conventions change, some freed bits in LOOKUP_... space"

* 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  namei: make sure nd->depth is always valid
  teach set_nameidata() to handle setting the root as well
  take LOOKUP_{ROOT,ROOT_GRABBED,JUMPED} out of LOOKUP_... space
  switch file_open_root() to struct path

1  2 
Documentation/filesystems/path-lookup.rst
Documentation/filesystems/porting.rst
arch/um/drivers/mconsole_kern.c
fs/coredump.c
fs/namei.c
fs/nfs/nfstrace.h
fs/open.c
fs/proc/proc_sysctl.c
include/linux/fs.h
kernel/usermode_driver.c

@@@ -895,7 -895,7 +895,16 @@@ whereas previously it could be paired w
  
  **mandatory**
  
 +iov_iter_copy_from_user_atomic() is gone; use copy_page_from_iter_atomic().
 +The difference is copy_page_from_iter_atomic() advances the iterator and
 +you don't need iov_iter_advance() after it.  However, if you decide to use
 +only a part of obtained data, you should do iov_iter_revert().
++
++---
++
++**mandatory**
++
+ Calling conventions for file_open_root() changed; now it takes struct path *
+ instead of passing mount and dentry separately.  For callers that used to
+ pass <mnt, mnt->mnt_root> pair (i.e. the root of given mount), a new helper
+ is provided - file_open_root_mnt().  In-tree users adjusted.
Simple merge
diff --cc fs/coredump.c
Simple merge
diff --cc fs/namei.c
Simple merge
Simple merge
diff --cc fs/open.c
Simple merge
Simple merge
Simple merge
Simple merge