Deleted Added
full compact
fs.h (68568) fs.h (83366)
1/*
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*
8 * Copyright (c) 1982, 1986, 1993

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

32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)fs.h 8.7 (Berkeley) 4/19/94
1/*
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*
8 * Copyright (c) 1982, 1986, 1993

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

32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)fs.h 8.7 (Berkeley) 4/19/94
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/fs.h 68568 2000-11-10 14:54:15Z bde $
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/fs.h 83366 2001-09-12 08:38:13Z julian $
41 */
42
43/*
44 * Each disk drive contains some number of file systems.
45 * A file system consists of a number of cylinder groups.
46 * Each cylinder group has inodes and data.
47 *
48 * A file system is described by its super-block, which in turn

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

148extern u_char *fragtbl[];
149
150/* a few remarks about superblock locking/unlocking
151 * Linux provides special routines for doing so
152 * I haven't figured out yet what BSD does
153 * I think I'll try a VOP_LOCK/VOP_UNLOCK on the device vnode
154 */
155#define DEVVP(inode) (VFSTOUFS(ITOV(inode)->v_mount)->um_devvp)
41 */
42
43/*
44 * Each disk drive contains some number of file systems.
45 * A file system consists of a number of cylinder groups.
46 * Each cylinder group has inodes and data.
47 *
48 * A file system is described by its super-block, which in turn

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

148extern u_char *fragtbl[];
149
150/* a few remarks about superblock locking/unlocking
151 * Linux provides special routines for doing so
152 * I haven't figured out yet what BSD does
153 * I think I'll try a VOP_LOCK/VOP_UNLOCK on the device vnode
154 */
155#define DEVVP(inode) (VFSTOUFS(ITOV(inode)->v_mount)->um_devvp)
156#define lock_super(devvp) vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, curproc)
157#define unlock_super(devvp) VOP_UNLOCK(devvp, 0, curproc)
156#define lock_super(devvp) vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, curthread)
157#define unlock_super(devvp) VOP_UNLOCK(devvp, 0, curthread)
158
159/*
160 * To lock a buffer, set the B_LOCKED flag and then brelse() it. To unlock,
161 * reset the B_LOCKED flag and brelse() the buffer back on the LRU list
162 */
163#define LCK_BUF(bp) { \
164 int s; \
165 s = splbio(); \

--- 19 unchanged lines hidden ---
158
159/*
160 * To lock a buffer, set the B_LOCKED flag and then brelse() it. To unlock,
161 * reset the B_LOCKED flag and brelse() the buffer back on the LRU list
162 */
163#define LCK_BUF(bp) { \
164 int s; \
165 s = splbio(); \

--- 19 unchanged lines hidden ---