gfs2: Split gfs2_rsqa_delete into gfs2_rs_delete and gfs2_qa_put

Keeping reservations and quotas separate helps reviewing the code.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
This commit is contained in:
Andreas Gruenbacher
2020-03-06 10:32:35 -06:00
committed by Bob Peterson
parent 2fba46a04c
commit 1595548fe7
6 changed files with 13 additions and 9 deletions

View File

@@ -701,8 +701,10 @@ static int gfs2_release(struct inode *inode, struct file *file)
kfree(file->private_data);
file->private_data = NULL;
if (file->f_mode & FMODE_WRITE)
gfs2_rsqa_delete(ip, &inode->i_writecount);
if (file->f_mode & FMODE_WRITE) {
gfs2_rs_delete(ip, &inode->i_writecount);
gfs2_qa_put(ip);
}
return 0;
}