Deleted Added
full compact
ffs_softdep.c (56908) ffs_softdep.c (58345)
1/*
2 * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
3 *
4 * The soft updates code is derived from the appendix of a University
5 * of Michigan technical report (Gregory R. Ganger and Yale N. Patt,
6 * "Soft Updates: A Solution to the Metadata Update Problem in File
7 * Systems", CSE-TR-254-95, August 1995).
8 *

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

48 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
49 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
51 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
52 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
53 * SUCH DAMAGE.
54 *
55 * from: @(#)ffs_softdep.c 9.56 (McKusick) 1/17/00
1/*
2 * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
3 *
4 * The soft updates code is derived from the appendix of a University
5 * of Michigan technical report (Gregory R. Ganger and Yale N. Patt,
6 * "Soft Updates: A Solution to the Metadata Update Problem in File
7 * Systems", CSE-TR-254-95, August 1995).
8 *

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

48 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
49 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
51 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
52 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
53 * SUCH DAMAGE.
54 *
55 * from: @(#)ffs_softdep.c 9.56 (McKusick) 1/17/00
56 * $FreeBSD: head/sys/ufs/ffs/ffs_softdep.c 56908 2000-01-30 20:32:59Z mckusick $
56 * $FreeBSD: head/sys/ufs/ffs/ffs_softdep.c 58345 2000-03-20 10:44:49Z phk $
57 */
58
59/*
60 * For now we want the safety net that the DIAGNOSTIC and DEBUG flags provide.
61 */
62#ifndef DIAGNOSTIC
63#define DIAGNOSTIC
64#endif

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

2775{
2776 struct worklist *wk, *nextwk;
2777 struct indirdep *indirdep;
2778
2779 /*
2780 * We only care about write operations. There should never
2781 * be dependencies for reads.
2782 */
57 */
58
59/*
60 * For now we want the safety net that the DIAGNOSTIC and DEBUG flags provide.
61 */
62#ifndef DIAGNOSTIC
63#define DIAGNOSTIC
64#endif

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

2775{
2776 struct worklist *wk, *nextwk;
2777 struct indirdep *indirdep;
2778
2779 /*
2780 * We only care about write operations. There should never
2781 * be dependencies for reads.
2782 */
2783 if (bp->b_flags & B_READ)
2783 if (bp->b_iocmd == BIO_READ)
2784 panic("softdep_disk_io_initiation: read");
2785 /*
2786 * Do any necessary pre-I/O processing.
2787 */
2788 for (wk = LIST_FIRST(&bp->b_dep); wk; wk = nextwk) {
2789 nextwk = LIST_NEXT(wk, wk_list);
2790 switch (wk->wk_type) {
2791

--- 1897 unchanged lines hidden ---
2784 panic("softdep_disk_io_initiation: read");
2785 /*
2786 * Do any necessary pre-I/O processing.
2787 */
2788 for (wk = LIST_FIRST(&bp->b_dep); wk; wk = nextwk) {
2789 nextwk = LIST_NEXT(wk, wk_list);
2790 switch (wk->wk_type) {
2791

--- 1897 unchanged lines hidden ---