mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
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:
parent
7dbc6ae60d
commit
8f190c97a4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user