]> git.baikalelectronics.ru Git - kernel.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)
commita8ef0b2d2afb53d9460e9ac7f71a87073746dbdf
tree25f0f5d270b87fb862fb4f0e2539120ba530466a
parentcac53122b4ae2737dc9e9044ae99f0f57bf85152
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