From: Ethan Ferguson Date: Thu, 28 Aug 2025 20:37:14 +0000 (-0400) Subject: ntfs3: transition magic number to shared constant X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=80ff677b55b5186b2844a2d4f4c91c01ef836276;p=users%2Fhch%2Fmisc.git ntfs3: transition magic number to shared constant Use the common FSLABEL_MAX constant instead of a hardcoded magic constant of 256. Signed-off-by: Ethan Ferguson Signed-off-by: Konstantin Komarov --- diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h index 1296e6fcc779..630128716ea7 100644 --- a/fs/ntfs3/ntfs_fs.h +++ b/fs/ntfs3/ntfs_fs.h @@ -280,7 +280,7 @@ struct ntfs_sb_info { __le16 flags; // Cached current VOLUME_INFO::flags, VOLUME_FLAG_DIRTY. u8 major_ver; u8 minor_ver; - char label[256]; + char label[FSLABEL_MAX]; bool real_dirty; // Real fs state. } volume;