On Wed, Jun 14, 2023 at 03:09:17PM +0300, Amir Goldstein wrote: > Overlayfs and cachefiles use vfs_open_tmpfile() to open a tmpfile > without accounting for nr_files. > > Rename this helper to kernel_tmpfile_open() to better reflect this > helper is used for kernel internal users. > > cachefiles uses open_with_fake_path() without the need for a fake path > only to use the noaccount feature of open_with_fake_path(). > > Fork open_with_fake_path() to kernel_file_open() which only does the > noaccount feature and use it in cachefiles. Please split this into two patches, one for the vfs_tmpfile_open rename, and one for the kernel_file_open helper. > +EXPORT_SYMBOL(kernel_file_open); EXPORT_SYMBOL_GPL, please.