Bob Peterson 2df6f47150 GFS2: Fix direct IO write rounding error
The fsx test in xfstests was failing because it was using direct IO
writes which were using a bad calculation. It was using
loff_t lstart = offset & (PAGE_CACHE_SIZE - 1); when it should be
loff_t lstart = offset & ~(PAGE_CACHE_SIZE - 1);
Thus, the write at offset 0x67e00 was calculating lstart to be
0xe00, the address of our corruption. Instead, it should have been
0x67000. This patch fixes the calculation.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
2016-03-15 10:46:28 -04:00
..
2014-03-03 13:50:12 +00:00
2015-12-22 08:06:08 -06:00
2008-06-27 09:39:44 +01:00
2015-12-14 12:19:24 -06:00
2015-10-29 12:57:48 -05:00
2015-12-14 12:19:37 -06:00
2016-01-12 18:09:35 -08:00
2013-06-14 11:17:15 +01:00
2013-06-03 14:20:18 -07:00
2015-11-09 15:11:24 -08:00
2014-05-14 10:04:34 +01:00
2015-09-11 12:23:51 -07:00
2011-05-10 13:12:49 +01:00
2015-11-16 12:00:29 -06:00
2016-01-12 18:09:35 -08:00
2015-12-14 12:19:24 -06:00
2015-01-13 10:48:57 +00:00
2015-05-05 13:23:22 -05:00
2012-01-11 09:23:05 +00:00
2016-01-12 18:09:35 -08:00
2015-12-06 21:25:17 -05:00