From: Viacheslav Dubeyko Date: Fri, 24 Jan 2025 19:46:23 +0000 (-0800) Subject: ceph: exchange hardcoded value on NAME_MAX X-Git-Tag: v6.14-rc1~21^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3981be13ec1baf811bfb93ed6a98bafc85cdeab1;p=thirdparty%2Fkernel%2Fstable.git ceph: exchange hardcoded value on NAME_MAX Initially, ceph_fs_debugfs_init() had temporary name buffer with hardcoded length of 80 symbols. Then, it was hardcoded again for 100 symbols. Finally, it makes sense to exchange hardcoded value on properly defined constant and 255 symbols should be enough for any name case. Signed-off-by: Viacheslav Dubeyko Reviewed-by: Patrick Donnelly Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index fdf9dc15eafae..fdd404fc81124 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c @@ -412,7 +412,7 @@ void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) { - char name[100]; + char name[NAME_MAX]; doutc(fsc->client, "begin\n"); fsc->debugfs_congestion_kb =