[GFS2] Fix GFS2's use of do_div() in its quota calculations
authorDavid Howells <dhowells@redhat.com>
Fri, 11 Jul 2008 13:39:56 +0000 (14:39 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 11 Jul 2008 13:35:01 +0000 (14:35 +0100)
commit4abaca17e758e3326c96ced88b2cd9b7b84922f6
tree920bcf9d988d3141d5a906ad683b8903ef074068
parenta93a6ce24215c69126c88f9c488afa50a168e0ca
[GFS2] Fix GFS2's use of do_div() in its quota calculations

Fix GFS2's need_sync()'s use of do_div() on an s64 by using div_s64() instead.

This does assume that gt_quota_scale_den can be cast to an s32.

This was introduced by patch b3b94faa5fe5968827ba0640ee9fba4b3e7f736e.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/quota.c