• Home
  • Raw
  • Download

Lines Matching refs:sc

461 void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, const void *buf)  in gfs2_statfs_change_in()  argument
465 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
466 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
467 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in()
470 static void gfs2_statfs_change_out(const struct gfs2_statfs_change_host *sc, void *buf) in gfs2_statfs_change_out() argument
474 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
475 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
476 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
1055 struct gfs2_statfs_change_host *sc) in statfs_slow_fill() argument
1058 sc->sc_total += rgd->rd_data; in statfs_slow_fill()
1059 sc->sc_free += rgd->rd_free; in statfs_slow_fill()
1060 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill()
1077 static int gfs2_statfs_slow(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) in gfs2_statfs_slow() argument
1086 memset(sc, 0, sizeof(struct gfs2_statfs_change_host)); in gfs2_statfs_slow()
1109 gh->gh_gl->gl_object, sc); in gfs2_statfs_slow()
1147 static int gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *sc) in gfs2_statfs_i() argument
1154 *sc = *m_sc; in gfs2_statfs_i()
1155 sc->sc_total += l_sc->sc_total; in gfs2_statfs_i()
1156 sc->sc_free += l_sc->sc_free; in gfs2_statfs_i()
1157 sc->sc_dinodes += l_sc->sc_dinodes; in gfs2_statfs_i()
1161 if (sc->sc_free < 0) in gfs2_statfs_i()
1162 sc->sc_free = 0; in gfs2_statfs_i()
1163 if (sc->sc_free > sc->sc_total) in gfs2_statfs_i()
1164 sc->sc_free = sc->sc_total; in gfs2_statfs_i()
1165 if (sc->sc_dinodes < 0) in gfs2_statfs_i()
1166 sc->sc_dinodes = 0; in gfs2_statfs_i()
1183 struct gfs2_statfs_change_host sc; in gfs2_statfs() local
1191 error = gfs2_statfs_slow(sdp, &sc); in gfs2_statfs()
1193 error = gfs2_statfs_i(sdp, &sc); in gfs2_statfs()
1200 buf->f_blocks = sc.sc_total; in gfs2_statfs()
1201 buf->f_bfree = sc.sc_free; in gfs2_statfs()
1202 buf->f_bavail = sc.sc_free; in gfs2_statfs()
1203 buf->f_files = sc.sc_dinodes + sc.sc_free; in gfs2_statfs()
1204 buf->f_ffree = sc.sc_free; in gfs2_statfs()