Whamcloud - gitweb
Use the fs-method statfs, so we can take into account the EA space needs
authoradilger <adilger>
Thu, 7 Nov 2002 23:54:17 +0000 (23:54 +0000)
committeradilger <adilger>
Thu, 7 Nov 2002 23:54:17 +0000 (23:54 +0000)
for extN (1 block for each inode, excluding special files).

lustre/mds/handler.c

index 4fd78ed..60bbce3 100644 (file)
@@ -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);