Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfs: remove unused struct xfs_mount field m_fsname_len

The struct xfs_mount field m_fsname_len is not used anywhere, remove it.

Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>

authored by

Ian Kent and committed by
Darrick J. Wong
f676c750 a5155b87

-2
-1
fs/xfs/xfs_mount.h
··· 90 90 91 91 struct xfs_buf *m_sb_bp; /* buffer for superblock */ 92 92 char *m_fsname; /* filesystem name */ 93 - int m_fsname_len; /* strlen of fs name */ 94 93 char *m_rtname; /* realtime device name */ 95 94 char *m_logname; /* external log device name */ 96 95 int m_bsize; /* fs logical block size */
-1
fs/xfs/xfs_super.c
··· 168 168 mp->m_fsname = kstrndup(sb->s_id, MAXNAMELEN, GFP_KERNEL); 169 169 if (!mp->m_fsname) 170 170 return -ENOMEM; 171 - mp->m_fsname_len = strlen(mp->m_fsname) + 1; 172 171 173 172 /* 174 173 * Copy binary VFS mount flags we are interested in.