Skip to content

Commit 80ff677

Browse files
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 <ethan.ferguson@zetier.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 8f5ae30 commit 80ff677

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ntfs3/ntfs_fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ struct ntfs_sb_info {
280280
__le16 flags; // Cached current VOLUME_INFO::flags, VOLUME_FLAG_DIRTY.
281281
u8 major_ver;
282282
u8 minor_ver;
283-
char label[256];
283+
char label[FSLABEL_MAX];
284284
bool real_dirty; // Real fs state.
285285
} volume;
286286

0 commit comments

Comments
 (0)