<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/f2fs/segment.c, branch linux-4.20.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.20.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-02-12T19:02:19Z</updated>
<entry>
<title>f2fs: fix to reorder set_page_dirty and wait_on_page_writeback</title>
<updated>2019-02-12T19:02:19Z</updated>
<author>
<name>Chao Yu</name>
</author>
<published>2018-12-12T10:12:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d946d55bc7b0fe00dc70717968e5e93fe3d0fb00'/>
<id>urn:sha1:d946d55bc7b0fe00dc70717968e5e93fe3d0fb00</id>
<content type='text'>
[ Upstream commit 8d64d365aed355b2e2465d19ba61df02462fff4d ]

This patch reorders flow from

- update page
- set_page_dirty
- wait_on_page_writeback

to

- wait_on_page_writeback
- update page
- set_page_dirty

The reason is:
- set_page_dirty will increase reference of dirty page, the reference
should be cleared before wait_on_page_writeback to keep its consistency.
- some devices need stable page during page writebacking, so we
should not change page's data.

Signed-off-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: fix data corruption issue with hardware encryption</title>
<updated>2018-10-23T00:54:47Z</updated>
<author>
<name>Sahitya Tummala</name>
</author>
<published>2018-10-10T05:26:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1e78e8bd9d107c351930cdb1e11202caec01b311'/>
<id>urn:sha1:1e78e8bd9d107c351930cdb1e11202caec01b311</id>
<content type='text'>
Direct IO can be used in case of hardware encryption. The following
scenario results into data corruption issue in this path -

Thread A -                          Thread B-
-&gt; write file#1 in direct IO
                                    -&gt; GC gets kicked in
                                    -&gt; GC submitted bio on meta mapping
				       for file#1, but pending completion
-&gt; write file#1 again with new data
   in direct IO
                                    -&gt; GC bio gets completed now
                                    -&gt; GC writes old data to the new
                                       location and thus file#1 is
				       corrupted.

Fix this by submitting and waiting for pending io on meta mapping
for direct IO case in f2fs_map_blocks().

Signed-off-by: Sahitya Tummala &lt;stummala@codeaurora.org&gt;
Reviewed-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: fix to spread clear_cold_data()</title>
<updated>2018-10-23T00:54:46Z</updated>
<author>
<name>Chao Yu</name>
</author>
<published>2018-07-27T10:15:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2baf07818549c8bb8d7b3437e889b86eab56d38e'/>
<id>urn:sha1:2baf07818549c8bb8d7b3437e889b86eab56d38e</id>
<content type='text'>
We need to drop PG_checked flag on page as well when we clear PG_uptodate
flag, in order to avoid treating the page as GCing one later.

Signed-off-by: Weichao Guo &lt;guoweichao@huawei.com&gt;
Signed-off-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: use rb_*_cached friends</title>
<updated>2018-10-16T16:36:59Z</updated>
<author>
<name>Chao Yu</name>
</author>
<published>2018-10-04T03:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4dada3fd7025e9dbc56c93d9996cba6e47915c62'/>
<id>urn:sha1:4dada3fd7025e9dbc56c93d9996cba6e47915c62</id>
<content type='text'>
As rbtree supports caching leftmost node natively, update f2fs codes
to use rb_*_cached helpers to speed up leftmost node visiting.

Signed-off-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: checkpoint disabling</title>
<updated>2018-10-16T16:36:39Z</updated>
<author>
<name>Daniel Rosenberg</name>
</author>
<published>2018-08-21T02:21:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4354994f097d068a894aa1a0860da54571df3582'/>
<id>urn:sha1:4354994f097d068a894aa1a0860da54571df3582</id>
<content type='text'>
Note that, it requires "f2fs: return correct errno in f2fs_gc".

This adds a lightweight non-persistent snapshotting scheme to f2fs.

To use, mount with the option checkpoint=disable, and to return to
normal operation, remount with checkpoint=enable. If the filesystem
is shut down before remounting with checkpoint=enable, it will revert
back to its apparent state when it was first mounted with
checkpoint=disable. This is useful for situations where you wish to be
able to roll back the state of the disk in case of some critical
failure.

Signed-off-by: Daniel Rosenberg &lt;drosen@google.com&gt;
[Jaegeuk Kim: use SB_RDONLY instead of MS_RDONLY]
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>Revert: "f2fs: check last page index in cached bio to decide submission"</title>
<updated>2018-10-01T01:39:54Z</updated>
<author>
<name>Chao Yu</name>
</author>
<published>2018-09-27T15:41:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bab475c5414e8d1fa182fd17ae966864e9c85741'/>
<id>urn:sha1:bab475c5414e8d1fa182fd17ae966864e9c85741</id>
<content type='text'>
There is one case that we can leave bio in f2fs, result in hanging
page writeback waiter.

Thread A				Thread B
- f2fs_write_cache_pages
 - f2fs_submit_page_write
 page #0 cached in bio #0 of cold log
 - f2fs_submit_page_write
 page #1 cached in bio #1 of warm log
					- f2fs_write_cache_pages
					 - f2fs_submit_page_write
					 bio is full, submit bio #1 contain page #1
 - f2fs_submit_merged_write_cond(, page #1)
 fail to submit bio #0 due to page #1 is not in any cached bios.

Signed-off-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: add to account meta IO</title>
<updated>2018-10-01T01:33:21Z</updated>
<author>
<name>Chao Yu</name>
</author>
<published>2018-09-29T10:31:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b63e7be5908cb757fc6b98fb9534dabd78b5338a'/>
<id>urn:sha1:b63e7be5908cb757fc6b98fb9534dabd78b5338a</id>
<content type='text'>
This patch supports to account meta IO, it enables to show write IO
from f2fs more comprehensively via 'status' debugfs entry.

Signed-off-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: avoid f2fs_bug_on if f2fs_get_meta_page_nofail got EIO</title>
<updated>2018-09-28T17:39:58Z</updated>
<author>
<name>Jaegeuk Kim</name>
</author>
<published>2018-09-18T00:36:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=edc55aaf0d1712b54a3704dd58423c7e495534fe'/>
<id>urn:sha1:edc55aaf0d1712b54a3704dd58423c7e495534fe</id>
<content type='text'>
This patch avoids BUG_ON when f2fs_get_meta_page_nofail got EIO during
xfstests/generic/475.

Reviewed-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: add new idle interval timing for discard and gc paths</title>
<updated>2018-09-19T22:55:14Z</updated>
<author>
<name>Sahitya Tummala</name>
</author>
<published>2018-09-19T08:48:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7d10cf3e4e3e308da01462a1ef8008233ee523d'/>
<id>urn:sha1:a7d10cf3e4e3e308da01462a1ef8008233ee523d</id>
<content type='text'>
This helps to control the frequency of submission of discard and
GC requests independently, based on the need.

Suggested-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Sahitya Tummala &lt;stummala@codeaurora.org&gt;
Reviewed-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: add SPDX license identifiers</title>
<updated>2018-09-12T20:07:10Z</updated>
<author>
<name>Chao Yu</name>
</author>
<published>2018-09-12T01:16:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c1a000d466235c875a989971cfda344e6bb1166'/>
<id>urn:sha1:7c1a000d466235c875a989971cfda344e6bb1166</id>
<content type='text'>
Remove the verbose license text from f2fs files and replace them with
SPDX tags.  This does not change the license of any of the code.

Signed-off-by: Chao Yu &lt;yuchao0@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
</feed>
