From: adilger Date: Thu, 7 Nov 2002 23:54:17 +0000 (+0000) Subject: Use the fs-method statfs, so we can take into account the EA space needs X-Git-Tag: 0.5.17~50 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=439efc3b0c10df8fc141cdfd0195f6f5d766a669;p=fs%2Flustre-release.git 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). --- 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);