d_path.c refactoring The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.d_path for you to fetch changes up to e4b275531887fef7f7d8a7284bfc32f0fbbd4208: getcwd(2): clean up error handling (2021-05-18 20:15:58 -0400) ---------------------------------------------------------------- Al Viro (14): d_path: "\0" is {0,0}, not {0} d_path: saner calling conventions for __dentry_path() d_path: regularize handling of root dentry in __dentry_path() d_path: get rid of path_with_deleted() getcwd(2): saner logics around prepend_path() call d_path: don't bother with return value of prepend() d_path: lift -ENAMETOOLONG handling into callers of prepend_path() d_path: make prepend_name() boolean d_path: introduce struct prepend_buffer d_path: prepend_path(): get rid of vfsmnt d_path: prepend_path(): lift resetting b in case when we'd return 3 out of loop d_path: prepend_path(): lift the inner loop into a new helper d_path: prepend_path() is unlikely to return non-zero getcwd(2): clean up error handling fs/d_path.c | 324 +++++++++++++++++++++++++----------------------------------- 1 file changed, 133 insertions(+), 191 deletions(-)