ext4: Fix ext4_quota_write cross block boundary behaviour
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 2 Mar 2010 13:08:51 +0000 (08:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Mar 2010 13:08:51 +0000 (08:08 -0500)
We always assume what dquot update result in changes in one data block
But ext4_quota_write() function may handle cross block boundary writes
In fact if this ever happen it will result in incorrect journal
credits reservation, and later a BUG_ON.  As soon this never happen
the boundary cross loop is NOOP.  In order to make things straight
let's remove this loop and assert cross boundary condition.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found