segbuf.c (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) | segbuf.c (7b6d91daee5cac6402186ff224c3af39d79f4a0e) |
---|---|
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 --- 494 unchanged lines hidden (view full) --- 503 goto failed_bio; 504 } 505 506 if (wi.bio) { 507 /* 508 * Last BIO is always sent through the following 509 * submission. 510 */ | 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 --- 494 unchanged lines hidden (view full) --- 503 goto failed_bio; 504 } 505 506 if (wi.bio) { 507 /* 508 * Last BIO is always sent through the following 509 * submission. 510 */ |
511 rw |= (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG); | 511 rw |= REQ_SYNC | REQ_UNPLUG; |
512 res = nilfs_segbuf_submit_bio(segbuf, &wi, rw); 513 } 514 515 failed_bio: 516 return res; 517} 518 519/** --- 25 unchanged lines hidden --- | 512 res = nilfs_segbuf_submit_bio(segbuf, &wi, rw); 513 } 514 515 failed_bio: 516 return res; 517} 518 519/** --- 25 unchanged lines hidden --- |