Ryan Ding
65c4db8c82
ocfs2: test target page before change it
...
To support direct io in ocfs2_write_begin_nolock & ocfs2_write_end_nolock.
Direct io data will not appear in buffer. The w_target_page member will
not be filled by direct io. So avoid to use it when it's NULL. Unlinke
buffer io and mmap, direct io will call write_begin with more than 1
page a time. So the target_index is not sufficient to describe the
actual data. change it to a range start at target_index, end in
end_index.
Signed-off-by: Ryan Ding <ryan.ding@oracle.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-03-25 16:37:42 -07:00
..
2016-01-22 18:04:28 -05:00
2016-01-20 17:09:18 -08:00
2016-02-20 00:15:51 -05:00
2016-01-22 18:04:28 -05:00
2016-03-19 18:52:29 -07:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-03-21 18:12:42 -07:00
2016-02-01 12:30:10 -05:00
2016-03-19 18:52:29 -07:00
2016-03-19 18:52:29 -07:00
2016-01-23 12:24:56 -08:00
2016-03-19 18:52:29 -07:00
2015-12-08 22:41:36 -05:00
2016-03-21 11:03:02 -07:00
2016-01-22 18:04:28 -05:00
2016-02-06 23:45:46 -08:00
2016-03-17 16:38:36 -07:00
2016-03-23 06:12:39 -07:00
2016-02-10 16:25:52 +00:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-03-17 16:31:18 -07:00
2016-03-22 15:36:02 -07:00
2016-03-17 21:19:47 -07:00
2016-03-22 15:36:02 -07:00
2015-12-08 22:41:36 -05:00
2015-11-11 02:11:02 -05:00
2016-03-16 14:38:31 +01:00
2016-03-17 16:51:32 -07:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-02-27 19:15:51 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-03-13 17:38:20 -04:00
2016-03-24 19:57:15 -07:00
2016-01-22 18:04:28 -05:00
2016-03-21 10:05:13 -07:00
2016-01-07 10:10:50 -05:00
2016-01-22 18:04:28 -05:00
2016-01-14 16:00:49 -08:00
2016-03-07 22:25:16 -05:00
2016-03-24 19:50:32 -07:00
2015-08-13 10:22:06 -04:00
2016-03-24 19:50:32 -07:00
2016-03-17 15:09:34 -07:00
2016-02-18 16:23:24 -08:00
2016-01-22 18:04:28 -05:00
2016-03-25 16:37:42 -07:00
2015-05-28 18:25:19 -07:00
2016-01-14 16:00:49 -08:00
2016-03-21 17:31:46 +01:00
2016-03-21 10:05:13 -07:00
2016-03-10 09:43:36 -08:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-03-21 12:22:37 -07:00
2015-12-08 22:41:36 -05:00
2016-02-09 13:05:23 +01:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2015-11-13 21:53:18 -08:00
2016-01-14 16:00:49 -08:00
2016-01-22 18:04:28 -05:00
2016-03-20 21:37:46 +01:00
2016-02-09 13:05:23 +01:00
2016-01-14 16:00:49 -08:00
2016-03-24 19:50:32 -07:00
2015-09-04 16:54:41 -07:00
2016-01-22 18:04:28 -05:00
2015-12-06 21:17:14 -05:00
2014-11-19 13:01:20 -05:00
2015-11-10 12:07:22 -08:00
2016-02-27 10:28:52 -08:00
2014-12-13 12:42:51 -08:00
2016-01-22 18:04:28 -05:00
2014-12-13 12:42:51 -08:00
2016-03-18 16:43:11 -07:00
2016-03-15 16:55:16 -07:00
2015-08-05 13:49:35 -07:00
2016-02-14 14:25:59 -08:00
2016-01-04 10:28:32 -05:00
2016-03-22 15:36:02 -07:00
2016-03-21 11:53:05 -07:00
2016-03-14 00:17:38 -04:00
2016-03-21 11:53:05 -07:00
2015-08-17 18:39:46 -04:00
2016-03-22 15:36:02 -07:00
2016-03-17 15:09:34 -07:00
2016-03-20 19:08:56 -07:00
2016-01-09 02:55:37 -05:00
2016-03-22 15:36:02 -07:00
2015-08-07 04:39:40 +03:00
2016-01-14 16:00:49 -08:00
2016-01-19 12:02:23 -05:00
2015-04-09 11:39:55 -05:00
2016-03-20 09:44:20 -06:00
2016-02-16 14:57:21 -07:00
2016-01-08 21:20:11 -05:00
2016-01-22 18:04:28 -05:00
2016-03-17 21:19:33 -07:00
2015-04-14 16:49:05 -07:00
2016-01-22 18:04:28 -05:00
2016-01-22 18:04:28 -05:00
2016-03-17 21:19:33 -07:00
2016-02-22 22:44:04 -05:00
2015-06-30 19:44:56 -07:00
2016-03-15 16:55:16 -07:00
2016-03-14 00:16:33 -04:00
2016-01-22 18:04:28 -05:00
2015-09-11 15:21:34 -07:00
2016-03-22 15:36:02 -07:00
2016-01-19 19:25:21 -05:00
2016-02-20 00:15:52 -05:00
2015-07-22 20:33:27 -05:00
2015-12-13 19:46:12 -05:00
2016-03-16 13:09:08 -04:00
2016-03-18 16:07:38 -04:00
2016-01-22 18:04:28 -05:00
2016-03-17 15:09:34 -07:00
2015-11-06 17:50:42 -08:00
2015-08-07 04:39:40 +03:00
2016-03-18 16:07:38 -04:00
2014-08-26 09:35:56 +02:00
2016-01-16 11:17:23 -08:00
2016-03-03 14:42:50 -07:00
2015-11-06 17:50:42 -08:00
2016-01-17 11:13:55 +01:00
2016-03-02 09:03:18 -08:00
2016-01-22 18:04:28 -05:00
2016-02-20 00:15:51 -05:00