xfs: quota: check result of register_shrinker()
authorAliaksei Karaliou <akaraliou.dev@gmail.com>
Thu, 21 Dec 2017 21:18:26 +0000 (13:18 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 2 Jan 2018 18:16:32 +0000 (10:16 -0800)
commit3a3882ff26fbdbaf5f7e13f6a0bccfbf7121041d
tree1c083282eaea71a61fe26b01d8d554eded62249f
parent2196881566225f3c3428d1a5f847a992944daa5b
xfs: quota: check result of register_shrinker()

xfs_qm_init_quotainfo() does not check result of register_shrinker()
which was tagged as __must_check recently, reported by sparse.

Signed-off-by: Aliaksei Karaliou <akaraliou.dev@gmail.com>
[darrick: move xfs_qm_destroy_quotainos nearer xfs_qm_init_quotainos]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_qm.c