提交 4f1bca9f 编写于 作者: J Jaegeuk Kim

f2fs: don't allow to get pino when filename is encrypted

After renaming an encrypted file, we have no way to get its
encrypted filename from its dentry.
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 8c1b3c0f
...@@ -110,6 +110,9 @@ static int get_parent_ino(struct inode *inode, nid_t *pino) ...@@ -110,6 +110,9 @@ static int get_parent_ino(struct inode *inode, nid_t *pino)
{ {
struct dentry *dentry; struct dentry *dentry;
if (file_enc_name(inode))
return 0;
inode = igrab(inode); inode = igrab(inode);
dentry = d_find_any_alias(inode); dentry = d_find_any_alias(inode);
iput(inode); iput(inode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册