ecryptfs build failure
Hello,
Recent kernel failed to build due to ecryptfs/main.
2 of 3 errors could be fixed with the following patch. The third is:
we make an assignment `lower_inode = lower_dentry->d_inode;' in ecryptfs_get_inode, yet ecryptfs_get_inode knows nothing about lower_dentry.
---
fs/ecryptfs/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fs/ecryptfs/main.c +2 -2
@@ -141,7 +141,7 @@ int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry)return rc; } -static inode *ecryptfs_get_inode (struct inode *lower_inode, +static struct inode *ecryptfs_get_inode (struct inode *lower_inode,struct super_block *sb) {struct inode *inode;
@@ -202,7 +202,7 @@ int ecryptfs_interpose(struct dentry *lower_dentry, struct dentry *dentry, {struct inode *lower_inode = lower_dentry->d_inode;struct inode *inode =ecryptfs_get_inode (lower_inode, sb); - if (IS_ERR(inode) +if (IS_ERR (inode))return PTR_ERR (inode);if (flags &ECRYPTFS_INTERPOSE_FLAG_D_ADD )d_add (dentry, inode);
Quoted 6 lines · Sergey Senozhatsky
Hello,
Recent kernel failed to build due to ecryptfs/main.
2 of 3 errors could be fixed with the following patch. The third is:
we make an assignment `lower_inode =lower_dentry->d_inode;' inecryptfs_get_inode, yetecryptfs_get_inodeknows nothing aboutlower_dentry.
Thanks - This was mentioned just a little bit ago on LKML by Eric Dumazet ([BUG] ECRYPT_FS) and Christoph responded with a patch. FWIW, it doesn't look like the patch below addresses the lower_dentry issue in ecryptfs_get_inode().
Tyler
Quoted 35 lines
---
fs/ecryptfs/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)fs/ecryptfs/main.c +2
-3@@ -141,7 +141,7 @@ int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry)return rc; } -static inode *ecryptfs_get_inode (struct inode *lower_inode, +static struct inode *ecryptfs_get_inode (struct inode *lower_inode,struct super_block *sb) {struct inode *inode;@@ -202,7 +202,7 @@ int ecryptfs_interpose(struct dentry *lower_dentry, struct dentry *dentry, {struct inode *lower_inode = lower_dentry->d_inode;struct inode *inode =ecryptfs_get_inode (lower_inode, sb); - if (IS_ERR(inode) +if (IS_ERR (inode))return PTR_ERR (inode);if (flags &ECRYPTFS_INTERPOSE_FLAG_D_ADD )d_add (dentry, inode); --To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 10 lines · Tyler Hicks
Quoted 6 lines · Sergey Senozhatsky
Hello,
Recent kernel failed to build due to ecryptfs/main.
2 of 3 errors could be fixed with the following patch. The third is:
we make an assignment `lower_inode =lower_dentry->d_inode;' inecryptfs_get_inode, yetecryptfs_get_inodeknows nothing aboutlower_dentry.Thanks - This was mentioned just a little bit ago on LKML by Eric Dumazet ([BUG]
ECRYPT_FS) and Christoph responded with a patch.
Fixed now. Cool.
Quoted 3 lines
FWIW, it doesn't look like the patch below addresses the
lower_dentryissue inecryptfs_get_inode().
Oops. Sorry. Nevermind, sent you v1 instead of v2.
Thanks,
Sergey