Skip to contentSkip to conversation

f2fs_write_inode

DISCUSSION Changman Lee 1 participant 1 message Dec 1, 2014

lore
Share & tools
lore
#0 lore raw

Hi guys,

I was wondering why f2fs_write_inode doesn't submit any I/O according to wbc->sync_mode.
If you have any idea, answer to my questions, please.

And at f2fs_sync_file,

	if (need_cp) {

Q: We've already called sync_fs. Is there any scenario like below ?
I refered to 354a3399dc6f7e556d04e1c731cd50e08eeb44bd but I can't guess the situation.

		if (file_wrong_pino(inode) && inode->i_nlink == 1 &&
					get_parent_ino(inode, &pino)) {
			fi->i_pino = pino;
			file_got_pino(inode);
			up_write(&fi->i_sem);
			mark_inode_dirty_sync(inode);

Q: Update but no write I/O. How to recover after SPO ?

			ret = f2fs_write_inode(inode, NULL);
			if (ret)
				goto out;
		} else {
			up_write(&fi->i_sem);
		}
	} else {

~ snip ~

out:

	return ret;

Regards,
Changman

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk