diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2019-09-02 17:31:06 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2019-09-04 20:22:06 +0200 |
commit | 45eb05042d5667408d101a8c056f70a8e8ac27f6 (patch) | |
tree | 080cb4db4973cb944d5e2a99b9b58478001e6d6d /fs/gfs2/quota.c | |
parent | 8f0daef5f797c13d7f9bd248190933932b14df36 (diff) | |
download | linux-45eb05042d5667408d101a8c056f70a8e8ac27f6.tar.gz linux-45eb05042d5667408d101a8c056f70a8e8ac27f6.tar.bz2 linux-45eb05042d5667408d101a8c056f70a8e8ac27f6.zip |
gfs2: Minor PAGE_SIZE arithmetic cleanups
Replace divisions by PAGE_SIZE with shifts by PAGE_SHIFT and similar.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r-- | fs/gfs2/quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 69c4b77f127b..7c016a082aa6 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -774,7 +774,7 @@ static int gfs2_write_disk_quota(struct gfs2_inode *ip, struct gfs2_quota *qp, nbytes = sizeof(struct gfs2_quota); pg_beg = loc >> PAGE_SHIFT; - pg_off = loc % PAGE_SIZE; + pg_off = offset_in_page(loc); /* If the quota straddles a page boundary, split the write in two */ if ((pg_off + nbytes) > PAGE_SIZE) { |