Lukas Czerner
eb3544c6fc
Revert "ext4: fix fsx truncate failure"
...
This reverts commit 189e868fa8 .
This commit reintroduces the use of ext4_block_truncate_page() in ext4
truncate operation instead of ext4_discard_partial_page_buffers().
The statement in the commit description that the truncate operation only
zero block unaligned portion of the last page is not exactly right,
since truncate_pagecache_range() also zeroes and invalidate the unaligned
portion of the page. Then there is no need to zero and unmap it once more
and ext4_block_truncate_page() was doing the right job, although we
still need to update the buffer head containing the last block, which is
exactly what ext4_block_truncate_page() is doing.
Moreover the problem described in the commit is fixed more properly with
commit
15291164b2
jbd2: clear BH_Delay & BH_Unwritten in journal_unmap_buffer
This was tested on ppc64 machine with block size of 1024 bytes without
any problems.
Signed-off-by: Lukas Czerner <lczerner@redhat.com >
Reviewed-by: Jan Kara <jack@suse.cz >
Signed-off-by: Theodore Ts'o <tytso@mit.edu >
2013-05-27 23:32:35 -04:00
..
2013-05-21 23:17:23 -04:00
2013-03-03 19:36:31 -08:00
2013-03-03 19:36:31 -08:00
2013-05-21 23:17:23 -04:00
2013-05-06 13:06:59 -07:00
2013-04-30 09:36:50 -07:00
2013-03-03 19:36:31 -08:00
2013-05-21 23:17:23 -04:00
2013-04-09 14:12:56 -04:00
2013-05-21 23:58:48 -04:00
2013-05-21 23:17:23 -04:00
2013-04-09 14:12:56 -04:00
2013-03-03 19:36:31 -08:00
2013-03-03 19:36:31 -08:00
2013-03-03 19:36:31 -08:00
2013-03-07 01:08:55 -08:00
2013-05-01 14:08:52 -07:00
2013-05-10 09:20:01 -07:00
2013-05-01 17:51:54 -07:00
2013-03-03 19:36:31 -08:00
2013-05-21 23:17:23 -04:00
2013-02-27 19:10:24 -08:00
2013-05-07 20:16:25 -07:00
2013-05-21 23:26:36 -04:00
2013-05-27 23:32:35 -04:00
2013-05-21 23:17:23 -04:00
2013-05-07 20:16:25 -07:00
2013-03-12 18:55:21 -07:00
2013-04-29 15:54:27 -07:00
2013-05-07 20:49:51 -07:00
2013-05-21 23:58:49 -04:00
2013-05-07 20:49:51 -07:00
2013-05-07 20:16:25 -07:00
2013-05-04 15:48:45 -04:00
2013-04-09 14:12:55 -04:00
2013-04-29 15:41:42 -04:00
2013-05-07 18:38:27 -07:00
2013-03-12 18:55:21 -07:00
2013-05-21 23:26:36 -04:00
2013-05-21 23:20:03 -04:00
2013-03-03 19:36:31 -08:00
2013-05-21 23:17:23 -04:00
2013-04-21 18:08:42 -04:00
2013-05-21 23:17:23 -04:00
2013-03-03 19:36:31 -08:00
2013-03-03 19:36:31 -08:00
2013-05-21 23:17:23 -04:00
2013-02-13 06:15:14 -08:00
2013-05-10 09:28:55 -07:00
2013-05-07 20:16:25 -07:00
2013-05-09 13:46:38 -04:00
2013-05-21 23:17:23 -04:00
2013-05-21 23:58:46 -04:00
2013-03-03 19:36:31 -08:00
2013-03-03 19:36:31 -08:00
2013-05-07 08:42:20 -07:00
2013-05-09 16:42:10 -07:00
2013-03-03 19:36:31 -08:00
2013-03-03 19:36:31 -08:00
2013-03-11 22:05:56 +01:00
2013-02-26 20:16:07 -08:00
2013-05-21 23:58:51 -04:00
2013-04-29 09:17:57 +10:00
2013-03-11 07:09:48 -07:00
2013-04-05 15:35:52 -07:00
2013-03-12 18:55:21 -07:00
2013-05-21 23:17:23 -04:00
2013-05-07 20:16:25 -07:00
2013-04-30 09:36:50 -07:00
2013-05-21 23:58:01 -04:00
2013-05-07 19:46:02 -07:00
2013-02-26 02:46:11 -05:00
2012-11-20 04:17:24 -08:00
2012-12-17 17:15:12 -08:00
2013-05-01 17:51:54 -07:00
2013-05-02 10:16:16 -07:00
2013-05-02 10:16:16 -07:00
2012-12-17 17:15:23 -08:00
2013-04-29 15:40:23 -04:00
2013-04-30 17:04:03 -07:00
2012-12-20 17:40:19 -08:00
2012-11-28 21:53:38 -05:00
2013-03-23 14:26:34 -07:00
2013-05-08 10:13:35 -07:00
2013-05-08 10:13:35 -07:00
2013-05-21 23:17:23 -04:00
2012-10-22 08:50:37 +03:00
2012-10-06 03:05:17 +09:00
2013-05-04 15:03:05 -04:00
2013-05-07 20:16:25 -07:00
2013-05-04 14:45:54 -04:00
2012-10-06 03:05:15 +09:00
2013-05-04 15:43:02 -04:00
2013-03-03 23:00:23 -05:00
2013-05-08 10:13:35 -07:00
2012-12-17 17:15:27 -08:00
2013-05-01 07:21:43 -07:00
2013-05-01 17:51:54 -07:00
2013-02-22 23:31:31 -05:00
2012-12-20 14:04:11 -08:00
2013-03-01 19:48:30 -05:00
2013-05-01 17:31:42 -04:00
2013-03-03 19:36:31 -08:00
2013-03-01 23:51:07 -05:00
2013-05-08 10:13:35 -07:00
2013-05-01 17:51:54 -07:00
2013-04-09 14:12:58 -04:00
2013-02-22 23:31:31 -05:00
2013-04-17 13:25:09 +01:00
2013-04-30 17:04:04 -07:00
2012-12-20 18:46:29 -05:00
2013-02-22 23:31:31 -05:00
2013-05-01 17:51:54 -07:00
2013-04-09 14:12:52 -04:00
2013-05-11 14:29:11 -07:00
2013-05-04 15:18:53 -04:00
2013-03-03 22:58:33 -05:00
2013-05-07 20:16:25 -07:00
2013-05-01 17:51:54 -07:00
2013-05-01 17:51:54 -07:00
2013-05-07 20:16:25 -07:00
2013-02-22 23:31:31 -05:00
2013-02-07 20:51:08 +01:00
2013-04-09 14:13:29 -04:00
2013-03-03 22:58:46 -05:00
2013-05-01 17:51:54 -07:00
2013-02-26 02:46:08 -05:00
2012-12-20 18:50:07 -05:00
2013-02-27 19:10:24 -08:00
2013-03-03 22:46:22 -05:00
2013-03-02 09:35:13 -05:00
2012-12-20 18:50:08 -05:00
2012-10-12 13:16:48 -07:00
2012-12-20 18:50:11 -05:00