]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: fix quota updates on block boundaries
authorAbhi Das <adas@redhat.com>
Tue, 2 Jun 2015 16:02:24 +0000 (11:02 -0500)
committerBob Peterson <rpeterso@redhat.com>
Tue, 2 Jun 2015 16:02:24 +0000 (11:02 -0500)
commit80257abf007c44e185c3eabb6820888708696ae9
treeed5e6b7755daa76b1cd28d3b8260f5ba3afa7007
parent5429973510a723054a7945ec3c3313f879c73712
gfs2: fix quota updates on block boundaries

For smaller block sizes (512B, 1K, 2K), some quotas straddle block
boundaries such that the usage value is on one block and the rest
of the quota is on the previous block. In such cases, the value
does not get updated correctly. This patch fixes that by addressing
the boundary conditions correctly.

This patch also adds a (s64) cast that was missing in a call to
gfs2_quota_change() in inode.c

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/inode.c
fs/gfs2/quota.c