]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xfs: remove unused struct xfs_mount field m_fsname_len
authorIan Kent <raven@themaw.net>
Mon, 4 Nov 2019 21:58:40 +0000 (13:58 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 16:28:25 +0000 (08:28 -0800)
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>
fs/xfs/xfs_mount.h
fs/xfs/xfs_super.c

index a46cb3fd24b1ebbd5d3b03ea39df4f54336f7f94..6e7d746b41bc320af0cffb07215d25ed8100c35d 100644 (file)
@@ -90,7 +90,6 @@ typedef struct xfs_mount {
 
        struct xfs_buf          *m_sb_bp;       /* buffer for superblock */
        char                    *m_fsname;      /* filesystem name */
-       int                     m_fsname_len;   /* strlen of fs name */
        char                    *m_rtname;      /* realtime device name */
        char                    *m_logname;     /* external log device name */
        int                     m_bsize;        /* fs logical block size */
index bcb1575a56525efdd0bcc1552f888a4e7e5b9900..f3ecd696180d9ece74bd646792ff7923fd490a1f 100644 (file)
@@ -168,7 +168,6 @@ xfs_parseargs(
        mp->m_fsname = kstrndup(sb->s_id, MAXNAMELEN, GFP_KERNEL);
        if (!mp->m_fsname)
                return -ENOMEM;
-       mp->m_fsname_len = strlen(mp->m_fsname) + 1;
 
        /*
         * Copy binary VFS mount flags we are interested in.