Re: 2.6.17-mm2 & ecryptfs

From: Michael Halcrow
Date: Mon Jun 26 2006 - 18:29:18 EST


On Mon, Jun 26, 2006 at 03:05:59PM -0700, Badari Pulavarty wrote:
> I am not sure, if its already reported or not.
>
> 2.6.17-mm2 vfs_statfs() takes a "dentry" instead of "sb".
> ecryptfs seems to be broken :(

Yeah, that one slipped right by me with the API change.

---

Update ecryptfs_statfs (API change).

Signed-off-by: Michael Halcrow <mhalcrow@xxxxxxxxxx>

---
fs/ecryptfs/super.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

b3c064b2248bd949c07900aab9ac4517f301d66c
diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c
index 437a542..8b014a4 100644
--- a/fs/ecryptfs/super.c
+++ b/fs/ecryptfs/super.c
@@ -122,9 +122,9 @@ static void ecryptfs_put_super(struct su
* Get the filesystem statistics. Currently, we let this pass right through
* to the lower filesystem and take no action ourselves.
*/
-static inline int ecryptfs_statfs(struct super_block *sb, struct kstatfs *buf)
+static inline int ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{
- return vfs_statfs(ecryptfs_superblock_to_lower(sb), buf);
+ return vfs_statfs(ecryptfs_dentry_to_lower(dentry), buf);
}

/**
--
1.3.3

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/