From: Linus Torvalds Date: Sat, 27 Feb 2021 16:07:12 +0000 (-0800) Subject: Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs X-Git-Tag: iomap-folio-5.17-old~1906 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5ceabb6078b80a8544ba86d6ee523ad755ae6d5e;p=users%2Fwilly%2Flinux.git Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs Pull misc vfs updates from Al Viro: "Assorted stuff pile - no common topic here" * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: whack-a-mole: don't open-code iminor/imajor 9p: fix misuse of sscanf() in v9fs_stat2inode() audit_alloc_mark(): don't open-code ERR_CAST() fs/inode.c: make inode_init_always() initialize i_ino to 0 vfs: don't unnecessarily clone write access for writable fds --- 5ceabb6078b80a8544ba86d6ee523ad755ae6d5e diff --cc Documentation/filesystems/porting.rst index 633610253f45,6a6d3e673b48..0302035781be --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@@ -872,14 -870,5 +872,21 @@@ its result is kern_unmount() or kern_un **mandatory** +zero-length bvec segments are disallowed, they must be filtered out before +passed on to an iterator. + +--- + +**mandatory** + +For bvec based itererators bio_iov_iter_get_pages() now doesn't copy bvecs but +uses the one provided. Anyone issuing kiocb-I/O should ensure that the bvec and +page references stay until I/O has completed, i.e. until ->ki_complete() has +been called or returned with non -EIOCBQUEUED code. ++ ++--- ++ ++**mandatory** ++ + mnt_want_write_file() can now only be paired with mnt_drop_write_file(), + whereas previously it could be paired with mnt_drop_write() as well.