Skip to content

Commit 8f190c9

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
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>
1 parent 7dbc6ae commit 8f190c9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

fs/gfs2/quota.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,7 @@ static u64 qd2index(struct gfs2_quota_data *qd)
213213

214214
static u64 qd2offset(struct gfs2_quota_data *qd)
215215
{
216-
u64 offset;
217-
218-
offset = qd2index(qd);
219-
offset *= sizeof(struct gfs2_quota);
220-
221-
return offset;
216+
return qd2index(qd) * sizeof(struct gfs2_quota);
222217
}
223218

224219
static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid)

0 commit comments

Comments
 (0)