segbuf.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) segbuf.c (721a9602e6607417c6bc15b18e97a2f35266c690)
1/*
2 * segbuf.c - NILFS segment buffer
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 495 unchanged lines hidden (view full) ---

504 goto failed_bio;
505 }
506
507 if (wi.bio) {
508 /*
509 * Last BIO is always sent through the following
510 * submission.
511 */
1/*
2 * segbuf.c - NILFS segment buffer
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 495 unchanged lines hidden (view full) ---

504 goto failed_bio;
505 }
506
507 if (wi.bio) {
508 /*
509 * Last BIO is always sent through the following
510 * submission.
511 */
512 rw |= REQ_SYNC | REQ_UNPLUG;
512 rw |= REQ_SYNC;
513 res = nilfs_segbuf_submit_bio(segbuf, &wi, rw);
514 }
515
516 failed_bio:
517 return res;
518}
519
520/**

--- 25 unchanged lines hidden ---
513 res = nilfs_segbuf_submit_bio(segbuf, &wi, rw);
514 }
515
516 failed_bio:
517 return res;
518}
519
520/**

--- 25 unchanged lines hidden ---