All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.17-mm2 & ecryptfs
@ 2006-06-26 22:05 Badari Pulavarty
  2006-06-26 22:30 ` Michael Halcrow
  0 siblings, 1 reply; 2+ messages in thread
From: Badari Pulavarty @ 2006-06-26 22:05 UTC (permalink / raw)
  To: mhalcrow, akpm; +Cc: lkml

Hi,

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 :(

I get following warnings when I compile it.

fs/ecryptfs/super.c: In function `ecryptfs_statfs':
fs/ecryptfs/super.c:127: warning: passing arg 1 of `vfs_statfs' from
incompatible pointer type
fs/ecryptfs/super.c: At top level:
fs/ecryptfs/super.c:203: warning: initialization from incompatible
pointer type

Thanks,
Badari


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6.17-mm2 & ecryptfs
  2006-06-26 22:05 2.6.17-mm2 & ecryptfs Badari Pulavarty
@ 2006-06-26 22:30 ` Michael Halcrow
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Halcrow @ 2006-06-26 22:30 UTC (permalink / raw)
  To: akpm; +Cc: Badari Pulavarty, lkml

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@us.ibm.com>

---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-26 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26 22:05 2.6.17-mm2 & ecryptfs Badari Pulavarty
2006-06-26 22:30 ` Michael Halcrow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.