Theodore Ts'o f5ccfe1ddb ext4: fix locking for O_APPEND writes
Al Viro pointed out that locking for O_APPEND writes was problematic,
since the location of the write isn't known until after we take the
i_mutex, which impacts the ext4_unaligned_aio() and s_bitmap_maxbytes
check.

For O_APPEND always assume that the write is unaligned so call
ext4_unwritten_wait().  And to solve the second problem, take the
i_mutex earlier before we start the s_bitmap_maxbytes check.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2014-04-21 14:37:52 -04:00
..
2014-04-21 14:37:52 -04:00
2013-08-28 14:47:06 -04:00
2012-12-10 16:30:43 -05:00
2014-02-20 13:32:10 -05:00
2014-04-01 17:08:44 +02:00
2012-12-10 16:30:43 -05:00