Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00089f06 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "f2fs: should avoid inode eviction in synchronous path"

parents 750e1435 82ee07bc
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1924,8 +1924,12 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,
				goto continue_unlock;
			}

			/* flush inline_data, if it's async context. */
			if (do_balance && is_inline_node(page)) {
			/* flush inline_data/inode, if it's async context. */
			if (!do_balance)
				goto write_node;

			/* flush inline_data */
			if (is_inline_node(page)) {
				clear_inline_node(page);
				unlock_page(page);
				flush_inline_data(sbi, ino_of_node(page));
@@ -1938,7 +1942,7 @@ int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,
				if (flush_dirty_inode(page))
					goto lock_node;
			}

write_node:
			f2fs_wait_on_page_writeback(page, NODE, true, true);

			if (!clear_page_dirty_for_io(page))