<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/fs/f2fs/checkpoint.c, branch linux-4.7.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.7.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2016-05-20T18:46:15+00:00</updated>
<entry>
<title>f2fs: flush pending bios right away when error occurs</title>
<updated>2016-05-20T18:46:15+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-05-18T21:07:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=38f91ca8c0ea69f707c26f592dcc70f937088bcc'/>
<id>urn:sha1:38f91ca8c0ea69f707c26f592dcc70f937088bcc</id>
<content type='text'>
Given errors, this patch flushes pending bios as soon as possible.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: use percpu_counter for alloc_valid_block_count</title>
<updated>2016-05-18T20:57:29+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-05-16T18:06:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=41382ec43255b502321c3c27f1347efeb3279290'/>
<id>urn:sha1:41382ec43255b502321c3c27f1347efeb3279290</id>
<content type='text'>
This patch uses percpu_count for sbi-&gt;alloc_valid_block_count.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: use bio count instead of F2FS_WRITEBACK page count</title>
<updated>2016-05-18T20:57:25+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-05-17T23:23:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f573018491fd823e909d587cfe16758f3dd9e6d6'/>
<id>urn:sha1:f573018491fd823e909d587cfe16758f3dd9e6d6</id>
<content type='text'>
This can reduce page counting overhead.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: manipulate dirty file inodes when DATA_FLUSH is set</title>
<updated>2016-05-16T22:32:03+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-05-16T17:33:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=10aa97c379cdd1e9f537a00ef2d787989759269d'/>
<id>urn:sha1:10aa97c379cdd1e9f537a00ef2d787989759269d</id>
<content type='text'>
It needs to maintain dirty file inodes only if DATA_FLUSH is set.
Otherwise, let's avoid its overhead.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: no need inc dirty pages under inode lock</title>
<updated>2016-05-16T22:32:01+00:00</updated>
<author>
<name>Yunlei He</name>
<email>heyunlei@huawei.com</email>
</author>
<published>2016-05-13T06:57:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b951a4ec165af4973b2bd9c80fb5845fbd840435'/>
<id>urn:sha1:b951a4ec165af4973b2bd9c80fb5845fbd840435</id>
<content type='text'>
No need inc dirty pages under inode lock

Signed-off-by: Yunlei He &lt;heyunlei@huawei.com&gt;
Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: fix inode cache leak</title>
<updated>2016-05-07T17:44:54+00:00</updated>
<author>
<name>Chao Yu</name>
<email>yuchao0@huawei.com</email>
</author>
<published>2016-05-07T08:15:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f61cce5b81f91ba336184008b24baec84afbb3dd'/>
<id>urn:sha1:f61cce5b81f91ba336184008b24baec84afbb3dd</id>
<content type='text'>
When testing f2fs with inline_dentry option, generic/342 reports:
VFS: Busy inodes after unmount of dm-0. Self-destruct in 5 seconds.  Have a nice day...

After rmmod f2fs module, kenrel shows following dmesg:
 =============================================================================
 BUG f2fs_inode_cache (Tainted: G           O   ): Objects remaining in f2fs_inode_cache on __kmem_cache_shutdown()
 -----------------------------------------------------------------------------

 Disabling lock debugging due to kernel taint
 INFO: Slab 0xf51ca0e0 objects=22 used=1 fp=0xd1e6fc60 flags=0x40004080
 CPU: 3 PID: 7455 Comm: rmmod Tainted: G    B      O    4.6.0-rc4+ #16
 Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
  00000086 00000086 d062fe18 c13a83a0 f51ca0e0 d062fe38 d062fea4 c11c7276
  c1981040 f51ca0e0 00000016 00000001 d1e6fc60 40004080 656a624f 20737463
  616d6572 6e696e69 6e692067 66326620 6e695f73 5f65646f 68636163 6e6f2065
 Call Trace:
  [&lt;c13a83a0&gt;] dump_stack+0x5f/0x8f
  [&lt;c11c7276&gt;] slab_err+0x76/0x80
  [&lt;c11cbfc0&gt;] ? __kmem_cache_shutdown+0x100/0x2f0
  [&lt;c11cbfc0&gt;] ? __kmem_cache_shutdown+0x100/0x2f0
  [&lt;c11cbfe5&gt;] __kmem_cache_shutdown+0x125/0x2f0
  [&lt;c1198a38&gt;] kmem_cache_destroy+0x158/0x1f0
  [&lt;c176b43d&gt;] ? mutex_unlock+0xd/0x10
  [&lt;f8f15aa3&gt;] exit_f2fs_fs+0x4b/0x5a8 [f2fs]
  [&lt;c10f596c&gt;] SyS_delete_module+0x16c/0x1d0
  [&lt;c1001b10&gt;] ? do_fast_syscall_32+0x30/0x1c0
  [&lt;c13c59bf&gt;] ? __this_cpu_preempt_check+0xf/0x20
  [&lt;c10afa7d&gt;] ? trace_hardirqs_on_caller+0xdd/0x210
  [&lt;c10ad50b&gt;] ? trace_hardirqs_off+0xb/0x10
  [&lt;c1001b81&gt;] do_fast_syscall_32+0xa1/0x1c0
  [&lt;c176d888&gt;] sysenter_past_esp+0x45/0x74
 INFO: Object 0xd1e6d9e0 @offset=6624
 kmem_cache_destroy f2fs_inode_cache: Slab cache still has objects
 CPU: 3 PID: 7455 Comm: rmmod Tainted: G    B      O    4.6.0-rc4+ #16
 Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
  00000286 00000286 d062fef4 c13a83a0 f174b000 d062ff14 d062ff28 c1198ac7
  c197fe18 f3c5b980 d062ff20 000d04f2 d062ff0c d062ff0c d062ff14 d062ff14
  f8f20dc0 fffffff5 d062e000 d062ff30 f8f15aa3 d062ff7c c10f596c 73663266
 Call Trace:
  [&lt;c13a83a0&gt;] dump_stack+0x5f/0x8f
  [&lt;c1198ac7&gt;] kmem_cache_destroy+0x1e7/0x1f0
  [&lt;f8f15aa3&gt;] exit_f2fs_fs+0x4b/0x5a8 [f2fs]
  [&lt;c10f596c&gt;] SyS_delete_module+0x16c/0x1d0
  [&lt;c1001b10&gt;] ? do_fast_syscall_32+0x30/0x1c0
  [&lt;c13c59bf&gt;] ? __this_cpu_preempt_check+0xf/0x20
  [&lt;c10afa7d&gt;] ? trace_hardirqs_on_caller+0xdd/0x210
  [&lt;c10ad50b&gt;] ? trace_hardirqs_off+0xb/0x10
  [&lt;c1001b81&gt;] do_fast_syscall_32+0xa1/0x1c0
  [&lt;c176d888&gt;] sysenter_past_esp+0x45/0x74

The reason is: in recovery flow, we use delayed iput mechanism for directory
which has recovered dentry block. It means the reference of inode will be
held until last dirty dentry page being writebacked.

But when we mount f2fs with inline_dentry option, during recovery, dirent
may only be recovered into dir inode page rather than dentry page, so there
are no chance for us to release inode reference in -&gt;writepage when
writebacking last dentry page.

We can call paired iget/iput explicityly for inline_dentry case, but for
non-inline_dentry case, iput will call writeback_single_inode to write all
data pages synchronously, but during recovery, -&gt;writepages of f2fs skips
writing all pages, result in losing dirent.

This patch fixes this issue by obsoleting old mechanism, and introduce a
new dir_list to hold all directory inodes which has recovered datas until
finishing recovery.

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: fix leak of orphan inode objects</title>
<updated>2016-05-07T17:32:25+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-05-03T05:09:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=74ef924167ad9d2897ffc0ef83c7ebf322fcc535'/>
<id>urn:sha1:74ef924167ad9d2897ffc0ef83c7ebf322fcc535</id>
<content type='text'>
When unmounting filesystem, we should release all the ino entries.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: inject ENOSPC failures</title>
<updated>2016-05-07T17:32:24+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-04-29T23:29:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cb78942b821380913e6810375c9ce72858e64c4f'/>
<id>urn:sha1:cb78942b821380913e6810375c9ce72858e64c4f</id>
<content type='text'>
This patch injects ENOSPC failures.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: use f2fs_grab_cache_page instead of grab_cache_page</title>
<updated>2016-05-07T17:32:21+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-04-29T23:11:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=300e129c15f0ed2f94482900a4cb65b28eb09d94'/>
<id>urn:sha1:300e129c15f0ed2f94482900a4cb65b28eb09d94</id>
<content type='text'>
This patch converts grab_cache_page to f2fs_grab_cache_page.

Signed-off-by: Jaegeuk Kim &lt;jaegeuk@kernel.org&gt;
</content>
</entry>
<entry>
<title>f2fs: split sync_node_pages with fsync_node_pages</title>
<updated>2016-04-26T21:24:48+00:00</updated>
<author>
<name>Jaegeuk Kim</name>
<email>jaegeuk@kernel.org</email>
</author>
<published>2016-04-13T23:24:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5268137564920843e581304d9bfb06fb9502cf24'/>
<id>urn:sha1:5268137564920843e581304d9bfb06fb9502cf24</id>
<content type='text'>
This patch splits the existing sync_node_pages into (f)sync_node_pages.
The fsync_node_pages is used for f2fs_sync_file only.

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