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>
This commit is contained in:
committed by
Andreas Gruenbacher
parent
7dbc6ae60d
commit
8f190c97a4
@ -213,12 +213,7 @@ static u64 qd2index(struct gfs2_quota_data *qd)
|
|||||||
|
|
||||||
static u64 qd2offset(struct gfs2_quota_data *qd)
|
static u64 qd2offset(struct gfs2_quota_data *qd)
|
||||||
{
|
{
|
||||||
u64 offset;
|
return qd2index(qd) * sizeof(struct gfs2_quota);
|
||||||
|
|
||||||
offset = qd2index(qd);
|
|
||||||
offset *= sizeof(struct gfs2_quota);
|
|
||||||
|
|
||||||
return offset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid)
|
static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid)
|
||||||
|
Reference in New Issue
Block a user