projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1b3c0
)
f2fs: don't allow to get pino when filename is encrypted
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 7 Mar 2017 19:22:45 +0000
(11:22 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 21 Mar 2017 20:52:16 +0000
(16:52 -0400)
After renaming an encrypted file, we have no way to get its
encrypted filename from its dentry.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 6d120a5b8f4b3521e0b5fc78b8a827f5725505e4..3212dfa1a50ed56fe1c04e1da29c018520b4f028 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-110,6
+110,9
@@
static int get_parent_ino(struct inode *inode, nid_t *pino)
{
struct dentry *dentry;
+ if (file_enc_name(inode))
+ return 0;
+
inode = igrab(inode);
dentry = d_find_any_alias(inode);
iput(inode);