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

Commit 167451ef authored by Shuoran Liu's avatar Shuoran Liu Committed by Jaegeuk Kim
Browse files

f2fs: set encryption name flag in add inline entry path



This patch sets encryption name flag in the add inline entry path
if filename is encrypted.

Signed-off-by: default avatarShuoran Liu <liushuoran@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent e06f86e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -525,6 +525,8 @@ int f2fs_add_inline_entry(struct inode *dir, const struct qstr *new_name,
			err = PTR_ERR(page);
			goto fail;
		}
		if (f2fs_encrypted_inode(dir))
			file_set_enc_name(inode);
	}

	f2fs_wait_on_page_writeback(ipage, NODE, true);