Files
mirror_zfs/module/zfs
Chunwei Chen 7a789346af Fix loop device becomes read-only
Commit 933ec99 removes read and write from f_op because the vfs layer will
select iter_write or aio_write automatically. However, for Linux <= 4.0,
loop_set_fd will actually check f_op->write and set read-only if not exists.
This patch add them back and use the generic do_sync_{read,write} for
aio_{read,write} and new_sync_{read,write} for {read,write}_iter.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #5776 
Closes #5855
2017-03-06 09:20:20 -08:00
..
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2016-11-02 12:14:45 -07:00
2017-02-24 13:34:26 -08:00
2016-12-12 10:46:26 -08:00
2016-12-12 10:46:26 -08:00
2017-01-03 11:31:18 -06:00
2015-01-16 14:41:26 -08:00
2016-04-21 09:49:25 -07:00
2017-01-03 11:31:18 -06:00
2010-08-31 13:41:58 -07:00
2017-01-03 11:31:18 -06:00
2016-08-11 11:23:49 -07:00
2017-01-03 11:31:18 -06:00
2016-12-02 16:57:49 -07:00
2016-11-29 14:34:33 -08:00
2017-02-24 12:05:42 -08:00
2013-10-31 14:58:04 -07:00
2017-02-24 13:34:26 -08:00
2010-08-31 13:41:58 -07:00
2016-09-21 18:09:00 -07:00
2017-01-03 11:31:18 -06:00
2016-11-30 16:18:20 -07:00
2017-02-08 17:28:22 -08:00
2016-12-16 13:54:51 -08:00
2017-01-03 11:31:18 -06:00
2017-03-06 09:20:20 -08:00
2017-02-11 12:42:17 -08:00
2016-05-31 16:04:26 -07:00
2017-01-03 11:31:18 -06:00
2017-01-23 10:35:58 -08:00
2017-02-08 09:27:48 -08:00