From: Linus Torvalds Date: Sat, 3 Jul 2021 18:41:14 +0000 (-0700) Subject: Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs X-Git-Tag: accepted/tizen/unified/20230118.172025~6912 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58ec9059b396a570b208239b4edc45eeb68b14c4;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'work.namei' of git://git./linux/kernel/git/viro/vfs 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 --- 58ec9059b396a570b208239b4edc45eeb68b14c4 diff --cc Documentation/filesystems/porting.rst index 43b492d,9bb2b35..bf19fd6 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@@ -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_root> pair (i.e. the root of given mount), a new helper + is provided - file_open_root_mnt(). In-tree users adjusted.