mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsync_node_entry"
This commit is contained in:
commit
ca7e73792c
1 changed files with 1 additions and 0 deletions
|
|
@ -402,6 +402,7 @@ static int do_read_inode(struct inode *inode)
|
|||
|
||||
/* try to recover cold bit for non-dir inode */
|
||||
if (!S_ISDIR(inode->i_mode) && !is_cold_node(node_page)) {
|
||||
f2fs_wait_on_page_writeback(node_page, NODE, true, true);
|
||||
set_cold_node(node_page, false);
|
||||
set_page_dirty(node_page);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue