From 439efc3b0c10df8fc141cdfd0195f6f5d766a669 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 7 Nov 2002 23:54:17 +0000 Subject: [PATCH] Use the fs-method statfs, so we can take into account the EA space needs for extN (1 block for each inode, excluding special files). --- lustre/mds/handler.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 4fd78ed..60bbce3 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -726,14 +726,13 @@ static int mds_statfs(struct ptlrpc_request *req) int rc, size = sizeof(*osfs); ENTRY; - rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, - &req->rq_repmsg); + rc = lustre_pack_msg(1, &size, NULL, &req->rq_replen, &req->rq_repmsg); if (rc || OBD_FAIL_CHECK(OBD_FAIL_MDS_STATFS_PACK)) { CERROR("mds: statfs lustre_pack_msg failed: rc = %d\n", rc); GOTO(out, rc); } - rc = vfs_statfs(mds->mds_sb, &sfs); + rc = mds_fs_statfs(mds, &sfs); if (rc) { CERROR("mds: statfs failed: rc %d\n", rc); GOTO(out, rc); -- 1.8.3.1