On 06/30/2015 09:13 AM, Ivan Shapovalov wrote:
On 2015-06-30 at 01:54 +0800, Edward Shishkin wrote:
Oh, bad
generic_write_checks() doesn't change offset now,
please, ignore this patch..
Hi,
Hello.
it does change it, but in struct kiocb instance, but we keep using
initial "off".
i'm trying to port file_operations' ->write() to ->write_iter() right
Hmm. You'll need to modify ->write() of both file plugins -
it's not simple, esp. for cryptcompress, which performs writes by
chunks (4, 8, ... 64K)
now, FTR. The obvious fix (assign back ki_pos to off) is too ugly :)
may be just create a static inline function
reiser4_write_check() ?
{
...
generic_write_check();
*off = iocb.ki_pos;
}
Thanks,
Edward.
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html