[PATCH 07/10] autofs: use path_create()
From: Mateusz Guzik
Date: Sun Sep 13 2026 - 10:55:51 EST
No functional changes.
Signed-off-by: Mateusz Guzik <mjguzik@xxxxxxxxx>
---
fs/autofs/expire.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/autofs/expire.c b/fs/autofs/expire.c
index 5c2d459e1e48..9d19c47dc3cc 100644
--- a/fs/autofs/expire.c
+++ b/fs/autofs/expire.c
@@ -30,12 +30,12 @@ static int autofs_mount_busy(struct vfsmount *mnt,
struct dentry *dentry, unsigned int how)
{
struct dentry *top = dentry;
- struct path path = {.mnt = mnt, .dentry = dentry};
+ struct path path;
int status = 1;
pr_debug("dentry %p %pd\n", dentry, dentry);
- path_get(&path);
+ path_create(&path, mnt, dentry);
if (!follow_down_one(&path))
goto done;
--
2.53.0