lkml.org 
[lkml]   [2015]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] f2fs crypto: check encryption for tmpfile
Date
This patch adds to check encryption for tmpfile in early stage.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
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


\
 
 \ /
  Last update: 2015-05-20 03:01    [W:0.684 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site