diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2014-11-20 06:18:38 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-11-20 11:29:14 +0100 |
commit | 3cdcf63ed2d169c82d70a506f3569e484cd9e7a0 (patch) | |
tree | b7a327562e9fe05ffccf6e616d6ef646a2dbb767 /fs/gfs2/quota.c | |
parent | GFS2: gfs2_create_inode(): don't bother with d_splice_alias() (diff) | |
download | linux-3cdcf63ed2d169c82d70a506f3569e484cd9e7a0.tar.xz linux-3cdcf63ed2d169c82d70a506f3569e484cd9e7a0.zip |
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) |