summaryrefslogtreecommitdiff
path: root/fs/gfs2
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2023-06-26 10:55:52 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-05 15:58:18 +0200
commit8f190c97a4f559bc7e8db739026ebb2d0f53ebed (patch)
tree87e1b08afc61e866a6c6b867912d9d5dc4dd192b /fs/gfs2
parent7dbc6ae60dd7089d8ed42892b6a66c138f0aa7a0 (diff)
gfs2: Simplify qd2offset
This is a minor cleanup of function qd2offset. 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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index aba8d31a9a7f..d45a3a1ed9fe 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -213,12 +213,7 @@ static u64 qd2index(struct gfs2_quota_data *qd)
static u64 qd2offset(struct gfs2_quota_data *qd)
{
- u64 offset;
-
- offset = qd2index(qd);
- offset *= sizeof(struct gfs2_quota);
-
- return offset;
+ return qd2index(qd) * sizeof(struct gfs2_quota);
}
static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid)