This patch adds to check encryption for tmpfile in early stage.
Signed-off-by: Jaegeuk Kim <[email protected]>
---
fs/f2fs/namei.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index dded2b0..47066b0 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -531,6 +531,11 @@ static int __f2fs_tmpfile(struct inode *dir, struct dentry
*dentry,
}
f2fs_lock_op(sbi);
+
+ err = f2fs_get_encryption_info(dir);
+ if (err)
+ goto out;
+
err = acquire_orphan_inode(sbi);
if (err)
goto out;
--
2.1.1
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel