projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dbc6ae
)
gfs2: Simplify qd2offset
author
Bob Peterson
<rpeterso@redhat.com>
Mon, 26 Jun 2023 15:55:52 +0000
(10:55 -0500)
committer
Andreas Gruenbacher
<agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:18 +0000
(15:58 +0200)
This is a minor cleanup of function qd2offset.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/quota.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/quota.c
b/fs/gfs2/quota.c
index aba8d31a9a7fd1eb63f263c43b835367271bdb1c..d45a3a1ed9fe779d33195af2899c4e147c04c79b 100644
(file)
--- 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)