linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: torvalds@osdl.org, akpm@osdl.org
Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org,
	nfsv4@linux-nfs.org, viro@zeniv.linux.org.uk,
	linux-kernel@vger.kernel.org
Subject: [PATCH 4/4] XFS: Use the dentry passed to statfs() to limit the scope of the results [try #3]
Date: Thu, 22 Jun 2006 15:24:08 +0100	[thread overview]
Message-ID: <20060622142408.10982.56925.stgit@warthog.cambridge.redhat.com> (raw)
In-Reply-To: <20060622142358.10982.23148.stgit@warthog.cambridge.redhat.com>

From: David Howells <dhowells@redhat.com>

The attached patch enables XFS to limit the statfs() results to the project
quota covering the dentry used as a base for call.

Signed-Off-By: David Howells <dhowells@redhat.com>
---

 fs/xfs/linux-2.6/xfs_super.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 4fb0fc6..9bdef9d 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -687,7 +687,8 @@ xfs_fs_statfs(
 	struct dentry		*dentry,
 	struct kstatfs		*statp)
 {
-	return -bhv_vfs_statvfs(vfs_from_sb(dentry->d_sb), statp, NULL);
+	return -bhv_vfs_statvfs(vfs_from_sb(dentry->d_sb), statp,
+				vn_from_inode(dentry->d_inode));
 }
 
 STATIC int

      parent reply	other threads:[~2006-06-22 14:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 14:23 [PATCH 0/4] VFS: Enable future NFS superblock sharing [try #3] David Howells
2006-06-22 14:24 ` [PATCH 1/4] Fix dcache race during umount " David Howells
2006-06-22 14:24 ` [PATCH 2/4] VFS: Permit filesystem to override root dentry on mount " David Howells
2006-06-22 14:24 ` [PATCH 3/4] VFS: Permit filesystem to perform statfs with a known root dentry " David Howells
2006-06-22 14:24 ` David Howells [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060622142408.10982.56925.stgit@warthog.cambridge.redhat.com \
    --to=dhowells@redhat.com \
    --cc=akpm@osdl.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nfsv4@linux-nfs.org \
    --cc=torvalds@osdl.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).