Lines Matching defs:mode
46 /* Construction mode */
113 /* Operations depending on the construction mode and file type */
1148 static int nilfs_segctor_collect_blocks(struct nilfs_sc_info *sci, int mode)
1164 if (mode == SC_LSEG_DSYNC) {
1172 if (mode == SC_FLUSH_DAT) {
1220 if (mode == SC_FLUSH_FILE) {
1268 if (mode == SC_FLUSH_DAT) {
1275 if (mode == SC_LSEG_SR) {
1520 struct the_nilfs *nilfs, int mode)
1534 err = nilfs_segctor_collect_blocks(sci, mode);
1543 if (mode != SC_LSEG_SR ||
1585 int mode)
1618 if (mode == SC_LSEG_DSYNC)
1655 static int nilfs_segctor_assign(struct nilfs_sc_info *sci, int mode)
1661 err = nilfs_segctor_update_payload_blocknr(sci, segbuf, mode);
2053 static int nilfs_segctor_do_construct(struct nilfs_sc_info *sci, int mode)
2084 err = nilfs_segctor_collect(sci, nilfs, mode);
2095 err = nilfs_segctor_assign(sci, mode);
2102 if (mode == SC_LSEG_SR &&
2375 * @mode: mode of log forming
2378 static void nilfs_segctor_notify(struct nilfs_sc_info *sci, int mode, int err)
2383 if (mode == SC_LSEG_SR) {
2389 if (mode == SC_FLUSH_FILE)
2391 else if (mode == SC_FLUSH_DAT)
2405 * @mode: mode of log forming
2407 static int nilfs_segctor_construct(struct nilfs_sc_info *sci, int mode)
2416 mode = SC_LSEG_SR;
2418 err = nilfs_segctor_do_construct(sci, mode);
2421 if (mode != SC_FLUSH_DAT)
2438 nilfs_segctor_notify(sci, mode, err);
2521 static void nilfs_segctor_thread_construct(struct nilfs_sc_info *sci, int mode)
2526 nilfs_segctor_construct(sci, mode);
2541 int mode = 0;
2544 mode = (sci->sc_flush_request & FLUSH_DAT_BIT) ?
2548 if (mode) {
2549 nilfs_segctor_do_construct(sci, mode);
2552 sci->sc_flush_request &= (mode == SC_FLUSH_FILE) ?
2596 int mode;
2602 mode = SC_LSEG_SR;
2604 mode = nilfs_segctor_flush_mode(sci);
2609 nilfs_segctor_thread_construct(sci, mode);