Deleted Added
full compact
vfs_aio.c (46580) vfs_aio.c (46676)
1/*
2 * Copyright (c) 1997 John S. Dyson. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. John S. Dyson's name may not be used to endorse or promote products
10 * derived from this software without specific prior written permission.
11 *
12 * DISCLAIMER: This code isn't warranted to do anything useful. Anything
13 * bad that happens because of using this software isn't the responsibility
14 * of the author. This software is distributed AS-IS.
15 *
1/*
2 * Copyright (c) 1997 John S. Dyson. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. John S. Dyson's name may not be used to endorse or promote products
10 * derived from this software without specific prior written permission.
11 *
12 * DISCLAIMER: This code isn't warranted to do anything useful. Anything
13 * bad that happens because of using this software isn't the responsibility
14 * of the author. This software is distributed AS-IS.
15 *
16 * $Id: vfs_aio.c,v 1.47 1999/05/06 18:44:42 peter Exp $
16 * $Id: vfs_aio.c,v 1.48 1999/05/06 20:00:25 phk Exp $
17 */
18
19/*
20 * This file contains support for the POSIX 1003.1B AIO/LIO facility.
21 */
22
23#include <sys/param.h>
24#include <sys/systm.h>

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

958 return -1;
959 }
960
961 majordev = major(vp->v_rdev);
962 if (majordev == NODEV) {
963 return -1;
964 }
965
17 */
18
19/*
20 * This file contains support for the POSIX 1003.1B AIO/LIO facility.
21 */
22
23#include <sys/param.h>
24#include <sys/systm.h>

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

958 return -1;
959 }
960
961 majordev = major(vp->v_rdev);
962 if (majordev == NODEV) {
963 return -1;
964 }
965
966 cdev = cdevsw[major(vp->v_rdev)];
966 cdev = devsw(vp->v_rdev);
967 if (cdev == NULL) {
968 return -1;
969 }
970
971 if (cdev->d_bmaj == -1) {
972 return -1;
973 }
974 bdev = cdev;

--- 1037 unchanged lines hidden ---
967 if (cdev == NULL) {
968 return -1;
969 }
970
971 if (cdev->d_bmaj == -1) {
972 return -1;
973 }
974 bdev = cdev;

--- 1037 unchanged lines hidden ---