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

Commit 437f4937 authored by Sheng Yong's avatar Sheng Yong Committed by Jaegeuk Kim
Browse files

f2fs: do not set LOST_PINO for newly created dir



commit d58dfb75056c5f732a0b83c54d22c99b4edc947a upstream.

Since directories will be written back with checkpoint and fsync a
directory will always write CP, there is no need to set LOST_PINO
after creating a directory.

Signed-off-by: default avatarSheng Yong <shengyong1@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 8ea8c407
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -415,6 +415,7 @@ struct page *init_inode_metadata(struct inode *inode, struct inode *dir,
	 * We lost i_pino from now on.
	 */
	if (is_inode_flag_set(inode, FI_INC_LINK)) {
		if (!S_ISDIR(inode->i_mode))
			file_lost_pino(inode);
		/*
		 * If link the tmpfile to alias through linkat path,