diff options
author | Bob Peterson <rpeterso@redhat.com> | 2023-05-31 10:31:33 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-09-05 15:58:17 +0200 |
commit | adfd2b5e4f87590fcd0abd756c71b0aefe20dbf4 (patch) | |
tree | 02968b57124809099aaed040f7a3044f953cbbb5 /fs/gfs2 | |
parent | ee1768e467a9c0f272192da1ce0ea5a9caf98ccc (diff) |
gfs2: pass sdp in to gfs2_write_disk_quota
Like the previous patch, we now pass the superblock pointer to function
gfs2_write_disk_quota. This makes the code more understandable, since it
only operates on the quota inode.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/quota.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 3d78026c63c4..3dade83bd358 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -798,9 +798,10 @@ unlock_out: return -EIO; } -static int gfs2_write_disk_quota(struct gfs2_inode *ip, struct gfs2_quota *qp, +static int gfs2_write_disk_quota(struct gfs2_sbd *sdp, struct gfs2_quota *qp, loff_t loc) { + struct gfs2_inode *ip = GFS2_I(sdp->sd_quota_inode); unsigned long pg_beg; unsigned pg_off, nbytes, overflow = 0; int pg_oflow = 0, error; @@ -884,7 +885,7 @@ static int gfs2_adjust_quota(struct gfs2_sbd *sdp, loff_t loc, } } - err = gfs2_write_disk_quota(ip, &q, loc); + err = gfs2_write_disk_quota(sdp, &q, loc); if (!err) { size = loc + sizeof(struct gfs2_quota); if (size > inode->i_size) |