From: Al Viro Date: Mon, 7 Jul 2025 01:55:21 +0000 (-0400) Subject: ovl_sync_file(): constify path argument X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee17384ace3ca663b3d7c7c868d3355f2618ff6c;p=thirdparty%2Fkernel%2Fstable.git ovl_sync_file(): constify path argument Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index 27396fe63f6d5..59630b8d50b63 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c @@ -242,7 +242,7 @@ static int ovl_verify_area(loff_t pos, loff_t pos2, loff_t len, loff_t totlen) return 0; } -static int ovl_sync_file(struct path *path) +static int ovl_sync_file(const struct path *path) { struct file *new_file; int err;