]> www.infradead.org Git - users/hch/misc.git/commitdiff
ntfs3: transition magic number to shared constant
authorEthan Ferguson <ethan.ferguson@zetier.com>
Thu, 28 Aug 2025 20:37:14 +0000 (16:37 -0400)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 10 Sep 2025 09:01:18 +0000 (11:01 +0200)
Use the common FSLABEL_MAX constant instead of a hardcoded magic
constant of 256.

Signed-off-by: Ethan Ferguson <ethan.ferguson@zetier.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/ntfs_fs.h

index 1296e6fcc779c58e891e33d5ccc9fe2d1a07274a..630128716ea73998d12a0345a5f3f5d05e79280a 100644 (file)
@@ -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;