]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/gfs2/quota.c
Merge tag 'fix-missing-panels' into fixes
[linux.git] / fs / gfs2 / quota.c
index 69c4b77f127b19d21910aed75f57942c0f166525..7c016a082aa68cd963d39deb0bb99df90df8abbf 100644 (file)
@@ -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) {