diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2014-11-20 05:18:38 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-11-20 10:29:14 +0000 |
commit | 3cdcf63ed2d169c82d70a506f3569e484cd9e7a0 (patch) | |
tree | b7a327562e9fe05ffccf6e616d6ef646a2dbb767 /fs/gfs2/quota.c | |
parent | 44bb31bac555b0faf2e7068f3a953d5b23883dc9 (diff) |
GFS2: use kvfree() instead of open-coding it
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r-- | fs/gfs2/quota.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 64b29f7f6b4c..c8b148bbdc8b 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -1360,13 +1360,8 @@ void gfs2_quota_cleanup(struct gfs2_sbd *sdp) gfs2_assert_warn(sdp, !atomic_read(&sdp->sd_quota_count)); - if (sdp->sd_quota_bitmap) { - if (is_vmalloc_addr(sdp->sd_quota_bitmap)) - vfree(sdp->sd_quota_bitmap); - else - kfree(sdp->sd_quota_bitmap); - sdp->sd_quota_bitmap = NULL; - } + kvfree(sdp->sd_quota_bitmap); + sdp->sd_quota_bitmap = NULL; } static void quotad_error(struct gfs2_sbd *sdp, const char *msg, int error) |