Deleted Added
full compact
ext2_alloc.c (59259) ext2_alloc.c (72640)
1/*
2 * modified for 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, 1989, 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 * @(#)ext2_alloc.c 8.8 (Berkeley) 2/21/94
1/*
2 * modified for 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, 1989, 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 * @(#)ext2_alloc.c 8.8 (Berkeley) 2/21/94
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_alloc.c 59259 2000-04-15 17:14:22Z rwatson $
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_alloc.c 72640 2001-02-18 10:25:42Z asmodai $
41 */
42
43#include "opt_quota.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/conf.h>
48#include <sys/vnode.h>

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

193
194/*
195 * Reallocate a sequence of blocks into a contiguous sequence of blocks.
196 *
197 * The vnode and an array of buffer pointers for a range of sequential
198 * logical blocks to be made contiguous is given. The allocator attempts
199 * to find a range of sequential blocks starting as close as possible to
200 * an fs_rotdelay offset from the end of the allocation for the logical
41 */
42
43#include "opt_quota.h"
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/conf.h>
48#include <sys/vnode.h>

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

193
194/*
195 * Reallocate a sequence of blocks into a contiguous sequence of blocks.
196 *
197 * The vnode and an array of buffer pointers for a range of sequential
198 * logical blocks to be made contiguous is given. The allocator attempts
199 * to find a range of sequential blocks starting as close as possible to
200 * an fs_rotdelay offset from the end of the allocation for the logical
201 * block immediately preceeding the current range. If successful, the
201 * block immediately preceding the current range. If successful, the
202 * physical block numbers in the buffer pointers and in the inode are
203 * changed to reflect the new allocation. If unsuccessful, the allocation
204 * is left unchanged. The success in doing the reallocation is returned.
205 * Note that the error return is not reflected back to the user. Rather
206 * the previous block allocation will be used.
207 */
208
209#ifdef FANCY_REALLOC

--- 348 unchanged lines hidden ---
202 * physical block numbers in the buffer pointers and in the inode are
203 * changed to reflect the new allocation. If unsuccessful, the allocation
204 * is left unchanged. The success in doing the reallocation is returned.
205 * Note that the error return is not reflected back to the user. Rather
206 * the previous block allocation will be used.
207 */
208
209#ifdef FANCY_REALLOC

--- 348 unchanged lines hidden ---