]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ecryptfs/super.c
pass a struct path to vfs_statfs
[net-next-2.6.git] / fs / ecryptfs / super.c
index 4b5de6c6e0fa0a656e6a78d1500f348b1e2fc056..f7fc286a3aa9a7353ab7ca1bd0ba56e7cbb821e2 100644 (file)
@@ -118,7 +118,11 @@ void ecryptfs_init_inode(struct inode *inode, struct inode *lower_inode)
  */
 static int ecryptfs_statfs(struct dentry *dentry, struct kstatfs *buf)
 {
-       return vfs_statfs(ecryptfs_dentry_to_lower(dentry), buf);
+       struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
+
+       if (!lower_dentry->d_sb->s_op->statfs)
+               return -ENOSYS;
+       return lower_dentry->d_sb->s_op->statfs(lower_dentry, buf);
 }
 
 /**