On Tue, Oct 10, 2023 at 09:28:41PM +0300, Amir Goldstein wrote: > > with making vm_user_file() do this: > > file = vma->vm_file; > > if (file && unlikely(file->f_mode & FMODE_BACKING)) > > file = backing_file(file)->user_file; > > return file; > > > > Voila. Two-commit series, considerably smaller than your > > variant... > > > > Yap. looks very nice. > I will try that out tomorrow. > > Anyway, it doesn't hurt to have the current version in linux-next > for the night to see if the change from fake f_path to real f_path > has any unexpected outcomes. There is an obvious problem with that approach - refcounts don't mix with loops ;-/ Sorry about the noise - this really won't work.