Commit 4f1bca9f authored by Jaegeuk Kim's avatar 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: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment