]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: refactor suffix_kstrtoint()
authorIan Kent <raven@themaw.net>
Mon, 4 Nov 2019 21:58:43 +0000 (13:58 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 16:28:26 +0000 (08:28 -0800)
commitc0a6791667f81d9b12443f7ed1c7b4602be9e3c9
tree25f0f5d270b87fb862fb4f0e2539120ba530466a
parent2c6eba31775ba1b4b067b95ccf51a6094715a446
xfs: refactor suffix_kstrtoint()

The mount-api doesn't have a "human unit" parse type yet so the options
that have values like "10k" etc. still need to be converted by the fs.

But the value comes to the fs as a string (not a substring_t type) so
there's a need to change the conversion function to take a character
string instead.

When xfs is switched to use the new mount-api match_kstrtoint() will no
longer be used and will be removed.

Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Brian Foster <bfoster@redhat.com>
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_super.c