CVS log for xfs-linux/xfs_ialloc.c

[BACK] Up to [Development] / xfs-linux

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.208 / (download) - annotate - [select for diffs], Wed Sep 24 16:31:33 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.207: +23 -0 lines
Diff to previous 1.207 (colored)

implement generic xfs_btree_get_rec

Not really much reason to make it generic given that it's so small,
but this is the last non-method in xfs_alloc_btree.c and xfs_ialloc_btree.c,
so it makes the whole btree implementation more structured.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32206a by kenmcd.

  implement generic xfs_btree_get_rec

Revision 1.207 / (download) - annotate - [select for diffs], Wed Sep 24 16:30:40 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.206: +2 -2 lines
Diff to previous 1.206 (colored)

implement generic xfs_btree_delete/delrec

Make the btree delete code generic.  Based on a patch from David Chinner
with lots of changes to follow the original btree implementations more
closely.  While this loses some of the generic helper routines for
inserting/moving/removing records it also solves some of the one off
bugs in the original code and makes it easier to verify.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32205a by kenmcd.

  implement generic xfs_btree_delete/delrec

Revision 1.206 / (download) - annotate - [select for diffs], Wed Sep 24 16:28:47 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.205: +1 -1 lines
Diff to previous 1.205 (colored)

implement generic xfs_btree_insert/insrec

Make the btree insert code generic.  Based on a patch from David Chinner
with lots of changes to follow the original btree implementations more
closely.  While this loses some of the generic helper routines for
inserting/moving/removing records it also solves some of the one off
bugs in the original code and makes it easier to verify.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32202a by kenmcd.

  implement generic xfs_btree_insert/insrec

Revision 1.205 / (download) - annotate - [select for diffs], Wed Sep 24 16:23:35 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.204: +20 -0 lines
Diff to previous 1.204 (colored)

implement generic xfs_btree_update

From: Dave Chinner <dgc@sgi.com>

The most complicated part here is the lastrec tracking for
the alloc btree.  Most logic is in the update_lastrec method
which has to do some hopefully good enough dirty magic to
maintain it.

[hch: split out from bigger patch and a rework of the lastrec
 logic]


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32194a by kenmcd.

  implement generic xfs_btree_update

Revision 1.204 / (download) - annotate - [select for diffs], Wed Sep 24 16:21:48 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.203: +53 -0 lines
Diff to previous 1.203 (colored)

implement generic xfs_btree_lookup

From: Dave Chinner <dgc@sgi.com>

[hch: split out from bigger patch and minor adaptions]


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32192a by kenmcd.

  implement generic xfs_btree_lookup

Revision 1.203 / (download) - annotate - [select for diffs], Wed Sep 24 16:20:52 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.202: +2 -2 lines
Diff to previous 1.202 (colored)

implement generic xfs_btree_decrement

From: Dave Chinner <dgc@sgi.com>

[hch: split out from bigger patch and minor adaptions]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32191a by kenmcd.

  implement generic xfs_btree_decrement

Revision 1.202 / (download) - annotate - [select for diffs], Wed Sep 24 16:19:56 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.201: +7 -7 lines
Diff to previous 1.201 (colored)

implement generic xfs_btree_increment

From: Dave Chinner <dgc@sgi.com>

Because this is the first major generic btree routine this patch
includes some infrastrucure, first a few routines to deal with
a btree block that can be either in short or long form, second
xfs_btree_read_buf_block, which is the new central routine to read
a btree block given a cursor, and third the new xfs_btree_ptr_addr
routine to calculate the address for a given btree pointer record.

[hch: split out from bigger patch and minor adaptions]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32190a by kenmcd.

  implement generic xfs_btree_increment

Revision 1.201 / (download) - annotate - [select for diffs], Wed Sep 24 16:11:20 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.200: +4 -8 lines
Diff to previous 1.200 (colored)

split up xfs_btree_init_cursor

xfs_btree_init_cursor contains close to little shared code for the different
btrees and will get even more non-common code in the future.  Split it up
into one routine per btree type.

Because xfs_btree_dup_cursor needs to call the init routine for a generic
btree cursor add a new btree operation vector that contains a dup_cursor
method that initializes a new cursor based on an existing one.

The btree operations vector is based on an idea and code from Dave Chinner
and will grow more entries later during this series.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32176a by kenmcd.

  split up xfs_btree_init_cursor

Revision 1.200 / (download) - annotate - [select for diffs], Tue Aug 19 15:46:54 2008 UTC (9 years, 1 month ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.199: +6 -6 lines
Diff to previous 1.199 (colored)

convert beX_add to beX_add_cpu (new common API)

remove beX_add functions and replace all uses with beX_add_cpu

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Merge of xfs-linux-melb:xfs-kern:31920a by kenmcd.

  convert beX_add to beX_add_cpu (new common API)

Revision 1.199 / (download) - annotate - [select for diffs], Tue Apr 29 04:22:14 2008 UTC (9 years, 5 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.198: +10 -0 lines
Diff to previous 1.198 (colored)

Don't initialise new inode generation numbers to zero

When we allocation new inode chunks, we initialise the generation
numbers to zero. This works fine until we delete a chunk and then
reallocate it, resulting in the same inode numbers but with a
reset generation count. This can result in inode/generation
pairs of different inodes occurring relatively close together.

Given that the inode/gen pair makes up the "unique" portion of
an NFS filehandle on XFS, this can result in file handles cached
on clients being seen on the wire from the server but refer to
a different file. This causes .... issues for NFS clients.

Hence we need a unique generation number initialisation for
each inode to prevent reuse of a small portion of the generation
number space. Use a random number to initialise the generation
number so we don't need to keep any new state on disk whilst
making the new number difficult to guess from previous allocations.
Merge of xfs-linux-melb:xfs-kern:31001a by kenmcd.

  use random32() to initialise the generation in newly allocated
  inodes to prevent short term reuse of inode,gen pairs which
  can cause ESTALE problems for NFS clients.

Revision 1.198 / (download) - annotate - [select for diffs], Tue Mar 25 05:14:01 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.197: +29 -15 lines
Diff to previous 1.197 (colored)

Account for inode cluster alignment in all allocations

At ENOSPC, we can get a filesystem shutdown due to a cancelling a
dirty transaction in xfs_mkdir or xfs_create. This is due to the
initial allocation attempt not taking into account inode alignment and hence
we can prepare the AGF freelist for allocation when it's not actually
possible to do an allocation. This results in inode allocation returning
ENOSPC with a dirty transaction, and hence we shut down the filesystem.

Because the first allocation is an exact allocation attempt, we must tell
the allocator that the alignment does not affect the allocation attempt.
i.e. we will accept any extent alignment as long as the extent starts
at the block we want. Unfortunately, this means that if the longest
free extent is less than the length + alignment necessary for fallback
allocation attempts but is long enough to attempt a non-aligned allocation,
we will modify the free list.

If we then have the exact allocation fail, all other allocation attempts
will also fail due to the alignment constraint being taken into account.
Hence the initial attempt needs to set the "alignment slop" field so
that alignment, while not required, must be taken into account when
determining if there is enough space left in the AG to do the allocation.

That means if the exact allocation fails, we will not dirty the freelist
if there is not enough space available fo a subsequent allocation to
succeed. Hence we get an ENOSPC error back to userspace without shutting
down the filesystem.
Merge of xfs-linux-melb:xfs-kern:30699a by kenmcd.

  Account for inode cluster allocation alignment even when trying to allocate
  at an exact block. This prevents a failed exact allocation attempt from
  dirtying the transaction when the conditions are such that no allocation
  can succeed.

Revision 1.197 / (download) - annotate - [select for diffs], Thu Feb 28 03:29:07 2008 UTC (9 years, 7 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.196: +1 -1 lines
Diff to previous 1.196 (colored)

If you mount an XFS filesystem with no mount options at all, then
the "ikeep" option is set rather than "noikeep".

This regression was introduced in 970451.

With no mount options specified, xfs_parseargs() does the following:

	int			ikeep = 0;

	args->flags |= XFSMNT_BARRIER;
	args->flags2 |= XFSMNT2_COMPAT_IOSIZE;

	if (!options)
		goto done;

It only sets the above two options by default and before, it also used to
set XFSMNT_IDELETE by default.

If options are specified, then

	if (!(args->flags & XFSMNT_DMAPI) && !ikeep)
		args->flags |= XFSMNT_IDELETE;

is executed later on which is skipped by the "goto done;" above.

The solution is to invert the logic.
Merge of xfs-linux-melb:xfs-kern:30590a by kenmcd.

  Change the *_IDELETE flags to *_IKEEP, and flip the logic as necessary.

Revision 1.196 / (download) - annotate - [select for diffs], Fri Feb 22 03:05:49 2008 UTC (9 years, 7 months ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.195: +3 -3 lines
Diff to previous 1.195 (colored)

remove shouting-indirection macros from xfs_sb.h

Remove macro-to-small-function indirection from xfs_sb.h,
and remove some which are completely unused.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of xfs-linux-melb:xfs-kern:30528a by kenmcd.

  remove shouting-indirection macros from xfs_sb.h

Revision 1.195 / (download) - annotate - [select for diffs], Thu Aug 23 15:56:14 2007 UTC (10 years, 1 month ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.194: +3 -3 lines
Diff to previous 1.194 (colored)

dinode endianess annotations

Biggest bit is duplicating the dinode structure so we have one annoted
for native endianess and one for disk endianess.  The other significant
change is that xfs_xlate_dinode_core is split into one helper per
direction to allow for proper annotations, everything else is trivial.

As a sidenode splitting out the incore dinode means we can move it into
xfs_inode.h in a later patch and severly improving on the include hell
in xfs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29476a by kenmcd.

  add endian notations for the dinode.

Revision 1.194 / (download) - annotate - [select for diffs], Tue May 22 15:50:48 2007 UTC (10 years, 4 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.193: +25 -3 lines
Diff to previous 1.193 (colored)

Lazy Superblock Counters

When we have a couple of hundred transactions on the fly at once,
they all typically modify the on disk superblock in some way.
create/unclink/mkdir/rmdir modify inode counts, allocation/freeing
modify free block counts.

When these counts are modified in a transaction, the must eventually
lock the superblock buffer and apply the mods.  The buffer then
remains locked until the transaction is committed into the incore
log buffer. The result of this is that with enough transactions on
the fly the incore superblock buffer becomes a bottleneck.

The result of contention on the incore superblock buffer is that
transaction rates fall - the more pressure that is put on the
superblock buffer, the slower things go.

The key to removing the contention is to not require the superblock
fields in question to be locked. We do that by not marking the
superblock dirty in the transaction. IOWs, we modify the incore
superblock but do not modify the cached superblock buffer. In short,
we do not log superblock modifications to critical fields in the
superblock on every transaction. In fact we only do it just before
we write the superblock to disk every sync period or just before
unmount.

This creates an interesting problem - if we don't log or write out
the fields in every transaction, then how do the values get
recovered after a crash? the answer is simple - we keep enough
duplicate, logged information in other structures that we can
reconstruct the correct count  after log recovery has been
performed.

It is the AGF and AGI structures that contain the duplicate
information; after recovery, we walk every AGI and AGF and sum their
individual counters to get the correct value, and we do a
transaction into the log to correct them. An optimisation of this is
that if we have a clean unmount record, we know the value in the
superblock is correct, so we can avoid the summation walk under
normal conditions and so mount/recovery times do not change under
normal operation.

One wrinkle that was discovered during development was that the
blocks used in the freespace btrees are never accounted for in the
AGF counters. This was once a valid optimisation to make; when the
filesystem is full, the free space btrees are empty and consume no
space. Hence when it matters, the "accounting" is correct.  But that
means the when we do the AGF summations, we would not have a correct
count and xfs_check would complain.  Hence a new counter was added
to track the number of blocks used by the free space btrees. This is
an *on-disk format change*.

As a result of this, lazy superblock counters are a mkfs option
and at the moment on linux there is no way to convert an old
filesystem. This is possible - xfs_db can be used to twiddle the
right bits and then xfs_repair will do the format conversion
for you. Similarly, you can convert backwards as well. At some point
we'll add functionality to xfs_admin to do the bit twiddling
easily....
Merge of xfs-linux-melb:xfs-kern:28652a by kenmcd.

  Changes to support lazy superblock counters.

Revision 1.193 / (download) - annotate - [select for diffs], Thu Nov 30 14:40:05 2006 UTC (10 years, 10 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.192: +1 -1 lines
Diff to previous 1.192 (colored)

Keep stack usage down for 4k stacks by using noinline.

gcc-4.1 and more recent aggressively inline static functions which
increases XFS stack usage by ~15% in critical paths. Prevent
this from occurring by adding noinline to the STATIC definition.

Also uninline some functions that are too large to be inlined and
were causing problems with CONFIG_FORCED_INLINING=y.

Finally, clean up all the different users of inline, __inline and
__inline__ and put them under one STATIC_INLINE macro. For debug
kernels the STATIC_INLINE macro uninlines those functions.
Merge of xfs-linux-melb:xfs-kern:27585a by kenmcd.

  noinline static function declaration cleanup.

Revision 1.192 / (download) - annotate - [select for diffs], Fri Aug 4 13:32:06 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.191: +1 -0 lines
Diff to previous 1.191 (colored)

Remove last bulkstat false-positives with debug kernels.
Merge of xfs-linux-melb:xfs-kern:26628a by kenmcd.

Revision 1.191 / (download) - annotate - [select for diffs], Fri Aug 4 13:22:06 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.190: +2 -2 lines
Diff to previous 1.190 (colored)

use NULL for pointer initialisation instead of zero-cast-to-ptr
Merge of xfs-linux-melb:xfs-kern:26562a by kenmcd.

Revision 1.190 / (download) - annotate - [select for diffs], Fri Aug 4 13:17:23 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.189: +3 -3 lines
Diff to previous 1.189 (colored)

endianess annotations for xfs_inobt_rec_t / xfs_inobt_key_t

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:26556a by kenmcd.

  endianess annotations for xfs_inobt_rec_t / xfs_inobt_key_t

Revision 1.189 / (download) - annotate - [select for diffs], Thu Jun 15 03:58:11 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.188: +0 -2 lines
Diff to previous 1.188 (colored)

Remove version 1 directory code.  Never functioned on Linux, just pure bloat.
Merge of xfs-linux-melb:xfs-kern:26251a by kenmcd.

Revision 1.188 / (download) - annotate - [select for diffs], Tue May 30 16:00:11 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.187: +3 -0 lines
Diff to previous 1.187 (colored)

Fix up debug code so that bulkstat wont generate thousands of fsstress warnings.
Merge of xfs-linux-melb:xfs-kern:26111a by kenmcd.

Revision 1.187 / (download) - annotate - [select for diffs], Tue Apr 11 15:23:30 2006 UTC (11 years, 6 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.186: +8 -7 lines
Diff to previous 1.186 (colored)

Fix a problem in aligning inode allocations to stripe unit boundaries.
Merge of xfs-linux-melb:xfs-kern:25726a by kenmcd.

Revision 1.186 / (download) - annotate - [select for diffs], Tue Mar 28 23:28:34 2006 UTC (11 years, 6 months ago) by overby
Branch: MAIN
Changes since 1.185: +68 -40 lines
Diff to previous 1.185 (colored)

A change to inode chunk allocation to try allocating the new chunk contiguous
with the most recently allocated chunk.  On a striped filesystem, this will
fill a stripe unit with inodes before allocating new inodes in another stripe
unit.
A change to inode chunk allocation to try allocating the new chunk contiguous
with the most recently allocated chunk.  On a striped filesystem, this will
fill a stripe unit with inodes before allocating new inodes in another stripe
unit.

Revision 1.185 / (download) - annotate - [select for diffs], Thu Mar 23 02:48:21 2006 UTC (11 years, 6 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.184: +1 -1 lines
Diff to previous 1.184 (colored)

We really suck at spulling.  Thanks to Chris Pascoe for fixing all these typos.
Merge of xfs-linux-melb:xfs-kern:25539a by kenmcd.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Mar 10 14:22:28 2006 UTC (11 years, 7 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.183: +4 -9 lines
Diff to previous 1.183 (colored)

Dynamically allocate the xfs_dinode_core_t structure to reduce our stack footprint in xfs_ialloc_ag_alloc.
Merge of xfs-linux-melb:xfs-kern:25420a by kenmcd.

Revision 1.183 / (download) - annotate - [select for diffs], Fri Oct 21 18:08:47 2005 UTC (11 years, 11 months ago) by hch
Branch: MAIN
Changes since 1.182: +36 -38 lines
Diff to previous 1.182 (colored)

Endianess annotations for various allocator data structures

Revision 1.182 / (download) - annotate - [select for diffs], Fri Sep 23 03:51:28 2005 UTC (12 years ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.181: +12 -26 lines
Diff to previous 1.181 (colored)

Update license/copyright notices to match the prefered SGI boilerplate.
Merge of xfs-linux-melb:xfs-kern:23903a by kenmcd.

Revision 1.181 / (download) - annotate - [select for diffs], Fri Sep 23 03:48:50 2005 UTC (12 years ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.180: +7 -9 lines
Diff to previous 1.180 (colored)

Remove xfs_macros.c, xfs_macros.h, rework headers a whole lot.
Merge of xfs-linux-melb:xfs-kern:23901a by kenmcd.

Revision 1.180 / (download) - annotate - [select for diffs], Mon Sep 5 12:36:32 2005 UTC (12 years, 1 month ago) by hch
Branch: MAIN
Changes since 1.179: +5 -2 lines
Diff to previous 1.179 (colored)

Add format checking to cmn_err and icmn_err

Revision 1.179 / (download) - annotate - [select for diffs], Fri Jan 14 11:57:33 2005 UTC (12 years, 9 months ago) by hch
Branch: MAIN
Changes since 1.178: +2 -2 lines
Diff to previous 1.178 (colored)

Remove INT_ZERO and INT_ISZERO
0 is 0 in all endianess variant.  No need for INT_ZERO and INT_ISZERO

Revision 1.178 / (download) - annotate - [select for diffs], Wed Jan 12 22:38:29 2005 UTC (12 years, 9 months ago) by hch
Branch: MAIN
Changes since 1.177: +16 -17 lines
Diff to previous 1.177 (colored)

Stop passing ARCH_CONVERT/ARCH_NOCONVERT around everywhere
stop passing ARCH_CONVERT/ARCH_NOCONVERT around everywhere

Revision 1.177 / (download) - annotate - [select for diffs], Tue Dec 14 22:17:29 2004 UTC (12 years, 10 months ago) by hch
Branch: MAIN
Changes since 1.176: +0 -5 lines
Diff to previous 1.176 (colored)

Undoes mod:     xfs-linux:xfs-kern:183616a
Backout the i_generation changes again

Revision 1.176 / (download) - annotate - [select for diffs], Wed Dec 1 16:03:30 2004 UTC (12 years, 10 months ago) by hch
Branch: MAIN
Changes since 1.175: +5 -0 lines
Diff to previous 1.175 (colored)

Avoid inode generation 0, it's used as wildcard by NFSD
start with di_gen = 1 for newly allocated inode clusters

Revision 1.175 / (download) - annotate - [select for diffs], Mon Oct 6 18:11:55 2003 UTC (14 years ago) by lord
Branch: MAIN
Changes since 1.174: +73 -24 lines
Diff to previous 1.174 (colored)

Implement deletion of inode clusters in XFS.
When freeing an inode, check to see if this is the last in use inode
in the cluster. If it is, then remove the inode cluster from the
inode btree and fix up the super block and agi inode counters.

Revision 1.174 / (download) - annotate - [select for diffs], Fri Sep 19 05:29:41 2003 UTC (14 years ago) by nathans
Branch: MAIN
Changes since 1.173: +1 -1 lines
Diff to previous 1.173 (colored)

Make debug code _exactly_ how it used to be to save on tree merging.

Revision 1.173 / (download) - annotate - [select for diffs], Fri Sep 19 04:51:31 2003 UTC (14 years ago) by nathans
Branch: MAIN
Changes since 1.172: +1 -1 lines
Diff to previous 1.172 (colored)

Accidentally switched some debug code off, reenable it.

Revision 1.172 / (download) - annotate - [select for diffs], Mon Sep 15 05:03:19 2003 UTC (14 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.171: +1 -1 lines
Diff to previous 1.171 (colored)

Undoes mod:     xfs-linux:slinx:158358a
Implement several additional inode flags - immutable, append-only, etc; contributed by Ethan Benson.

Revision 1.171 / (download) - annotate - [select for diffs], Mon Sep 15 03:40:38 2003 UTC (14 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.170: +1 -1 lines
Diff to previous 1.170 (colored)

Undoes mod:     xfs-linux:slinx:158357a
Undo last mod, checked in against wrong bug number with wrong change message.

Revision 1.170 / (download) - annotate - [select for diffs], Mon Sep 15 03:13:46 2003 UTC (14 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.169: +1 -1 lines
Diff to previous 1.169 (colored)

Separate the big filesystems macro out into separate big inums and blknos macros.  Also fix the check for too-large filesystems in the process.

Revision 1.169 / (download) - annotate - [select for diffs], Fri Jun 27 18:04:26 2003 UTC (14 years, 3 months ago) by cattelan
Branch: MAIN
Changes since 1.168: +1353 -0 lines
Diff to previous 1.168 (colored)

The Big Move
linux/fs/xfs/xfs_ialloc.c 1.167 Renamed to xfs_ialloc.c

Revision 1.168 / (download) - annotate - [select for diffs], Fri Jun 27 17:57:21 2003 UTC (14 years, 3 months ago) by cattelan
Branch: MAIN
CVS Tags: DENUKE
Changes since 1.167: +0 -1353 lines
Diff to previous 1.167 (colored)

Nuke

Revision 1.167 / (download) - annotate - [select for diffs], Fri May 9 14:23:33 2003 UTC (14 years, 5 months ago) by lord
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.166: +5 -31 lines
Diff to previous 1.166 (colored)

optimize the code used to initialize inodes during their allocation.
use a simple memset and initialize the few non zero fields
rather than initializing fields individually. Also move
this outside of an extra layer of loop.

Revision 1.166 / (download) - annotate - [select for diffs], Thu May 1 16:22:06 2003 UTC (14 years, 5 months ago) by cattelan
Branch: MAIN
Changes since 1.165: +26 -1 lines
Diff to previous 1.165 (colored)

Rework the way xfs includes xfs_<blah>.h headers.
This reduces a lot of the compile dependenciesÂ,
and should reduce some of the "recompile all" situations.

Revision 1.165 / (download) - annotate - [select for diffs], Tue Apr 15 23:16:46 2003 UTC (14 years, 6 months ago) by cattelan
Branch: MAIN
Changes since 1.164: +21 -21 lines
Diff to previous 1.164 (colored)

Whitespace cleanup
Clean up some whitespace... revert some whitespace changes from previous whitespace cleanup (incorrect tabs)

Revision 1.164 / (download) - annotate - [select for diffs], Fri Apr 4 17:27:05 2003 UTC (14 years, 6 months ago) by hch
Branch: MAIN
Changes since 1.163: +17 -2 lines
Diff to previous 1.163 (colored)

remove atomicIncWithWrap
opencode atomic increment with wrap here - user per-mp spinlock

Revision 1.163 / (download) - annotate - [select for diffs], Tue Mar 4 20:15:43 2003 UTC (14 years, 7 months ago) by overby
Branch: MAIN
Changes since 1.162: +4 -7 lines
Diff to previous 1.162 (colored)

Add error reporting calls in error paths that return EFSCORRUPTED
Merge of irix6.5f:irix:136445a by sandeen.

  Merge of grove2-6520stage:irix:136445a by roehrich.
  Merge of grove2:irix:136445a by roehrich.
  Add error reporting calls in error paths that return EFSCORRUPTED

Revision 1.162 / (download) - annotate - [select for diffs], Mon Dec 2 05:53:26 2002 UTC (14 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.161: +20 -14 lines
Diff to previous 1.161 (colored)

Sector size updates - macros for calculating address/size of sector-sized
data structures (sb,agf,agi,agfl) are now sector size aware.  Cleaned up
the early mount code dealing with log devices and logsectsize.
Macros for calculating address/size of sector-sized data structures     
(sb,agf,agi,agfl) are now sector size aware.

Revision 1.161 / (download) - annotate - [select for diffs], Wed Oct 23 04:21:07 2002 UTC (14 years, 11 months ago) by kaos
Branch: MAIN
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored)

Undoes mod:     2.4.x-xfs:slinx:130826a
Revert STATIC->static change

Revision 1.160 / (download) - annotate - [select for diffs], Wed Oct 23 03:54:05 2002 UTC (14 years, 11 months ago) by kaos
Branch: MAIN
Changes since 1.159: +3 -3 lines
Diff to previous 1.159 (colored)

Replace STATIC with static in xfs code

Revision 1.159 / (download) - annotate - [select for diffs], Wed Oct 9 03:06:48 2002 UTC (15 years ago) by nathans
Branch: MAIN
Changes since 1.158: +2 -2 lines
Diff to previous 1.158 (colored)

Global search and replace of the b* memory routines to their mem* equivalents.
(bcopy->memcopy, ovbcopy->memmove, bzero->memset, bcmp->memcmp).

Revision 1.158 / (download) - annotate - [select for diffs], Wed Jul 10 19:00:42 2002 UTC (15 years, 3 months ago) by sandeen
Branch: MAIN
Changes since 1.157: +59 -59 lines
Diff to previous 1.157 (colored)

whitespace cleanup

Revision 1.157 / (download) - annotate - [select for diffs], Tue Jun 4 16:30:46 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.156: +1 -1 lines
Diff to previous 1.156 (colored)

Update copyright dates

Revision 1.156 / (download) - annotate - [select for diffs], Sun Jun 2 12:48:46 2002 UTC (15 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.155: +17 -17 lines
Diff to previous 1.155 (colored)

switch xfs perag log to a rw_semaphore

Revision 1.155 / (download) - annotate - [select for diffs], Fri May 3 15:46:30 2002 UTC (15 years, 5 months ago) by sandeen
Branch: MAIN
Changes since 1.154: +7 -7 lines
Diff to previous 1.154 (colored)

Merge irix6.5f:irix:117830a
Move the mrlock/mrunlock of m_peraglock outside of the for loop that
searches AGs for one with free space for inodes.

Revision 1.154 / (download) - annotate - [select for diffs], Sat Apr 6 19:32:00 2002 UTC (15 years, 6 months ago) by sandeen
Branch: MAIN
Changes since 1.153: +5 -2 lines
Diff to previous 1.153 (colored)

merge irix6.5f:irix:115876a
fix xfs_ialloc_ag_select to not walk off the end of the perag list
when the starting inode number is beyond the maximum AG to put inodes in.

Revision 1.153 / (download) - annotate - [select for diffs], Fri Apr 5 05:54:31 2002 UTC (15 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.152: +3 -2 lines
Diff to previous 1.152 (colored)

fix some compiler warnings with DEBUG enabled.

Revision 1.152 / (download) - annotate - [select for diffs], Mon Apr 1 22:46:06 2002 UTC (15 years, 6 months ago) by sandeen
Branch: MAIN
Changes since 1.151: +2 -2 lines
Diff to previous 1.151 (colored)

Optimize endian flipping code when setting to or testing for zero
Use INT_ZERO and INT_ISZERO instead of INT_SET and INT_GET

Revision 1.151 / (download) - annotate - [select for diffs], Fri Jan 11 23:43:26 2002 UTC (15 years, 9 months ago) by sandeen
Branch: MAIN
Changes since 1.150: +49 -5 lines
Diff to previous 1.150 (colored)

Merge irix6.5f:irix:106406b
Add detailed messages to error cases that will likely result in the
shutdown of the filesystem.  Debug builds only.
Fix for bug 805830.

Revision 1.150 / (download) - annotate - [select for diffs], Mon Dec 3 17:52:09 2001 UTC (15 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.149: +12 -1 lines
Diff to previous 1.149 (colored)

For inode allocation skip allocation groups which would place an inode
out of range and make it larger than 32 bits.

Revision 1.149 / (download) - annotate - [select for diffs], Tue Oct 23 23:44:04 2001 UTC (15 years, 11 months ago) by nathans
Branch: MAIN
Changes since 1.148: +2 -0 lines
Diff to previous 1.148 (colored)

sync userpsace with recent XFS kernel changes - this does not affect
userspace (libxfs), all affected code is removed by cpp.  some of the
added kernel diagnostics did not endian convert where needed - these
instances have been corrected.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Oct 4 22:13:53 2001 UTC (16 years ago) by sandeen
Branch: MAIN
Changes since 1.147: +1 -1 lines
Diff to previous 1.147 (colored)

Whoops, don't put a \n on the end of the error message, clutters logs

Revision 1.147 / (download) - annotate - [select for diffs], Thu Oct 4 21:11:56 2001 UTC (16 years ago) by sandeen
Branch: MAIN
Changes since 1.146: +3 -0 lines
Diff to previous 1.146 (colored)

More verbose error messages on forced shutdown

Revision 1.146 / (download) - annotate - [select for diffs], Wed Aug 22 19:50:39 2001 UTC (16 years, 1 month ago) by roehrich
Branch: MAIN
Changes since 1.145: +1 -1 lines
Diff to previous 1.145 (colored)

*** empty log message ***

Revision 1.145 / (download) - annotate - [select for diffs], Mon May 14 15:39:44 2001 UTC (16 years, 5 months ago) by sandeen
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.144: +29 -4 lines
Diff to previous 1.144 (colored)

Add instrumentation for error conditions.
(Irix6.5f:irix:93790c, PV818277)

Revision 1.144 / (download) - annotate - [select for diffs], Thu Apr 12 23:35:02 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.143: +5 -5 lines
Diff to previous 1.143 (colored)

tidy up spurious whitespace & offsetting uncleanliness for those
routines which I'm syncing with userspace at the moment.

Revision 1.143 / (download) - annotate - [select for diffs], Wed Apr 11 16:27:03 2001 UTC (16 years, 6 months ago) by lord
Branch: MAIN
Changes since 1.142: +0 -43 lines
Diff to previous 1.142 (colored)

Kill gratuitous prototypes

Revision 1.142 / (download) - annotate - [select for diffs], Wed Apr 11 01:44:54 2001 UTC (16 years, 6 months ago) by cattelan
Branch: MAIN
Changes since 1.141: +54 -54 lines
Diff to previous 1.141 (colored)

Get rid of the last compiler warning OFF flags

Revision 1.141 / (download) - annotate - [select for diffs], Tue Sep 26 02:03:57 2000 UTC (17 years ago) by dxm
Branch: MAIN
CVS Tags: Release-1_0_0, PreRelease-0_10
Changes since 1.140: +35 -39 lines
Diff to previous 1.140 (colored)

pv 801066

Revision 1.140 / (download) - annotate - [select for diffs], Mon Sep 25 05:42:07 2000 UTC (17 years ago) by nathans
Branch: MAIN
Changes since 1.139: +1 -47 lines
Diff to previous 1.139 (colored)

use xfs.h, remove all traces of SIM, push extern declarations into headers,
dead code removal.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Aug 2 17:58:46 2000 UTC (17 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored)

Do not ask for a mapped buffer when creating a new inode buffer

Revision 1.138 / (download) - annotate - [select for diffs], Wed Jul 12 17:54:42 2000 UTC (17 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.137: +2 -6 lines
Diff to previous 1.137 (colored)

Simplify some logic in calculating the index of an inode into a buffer
when we are logging it into a transaction.

Revision 1.137 / (download) - annotate - [select for diffs], Fri Jun 30 18:54:07 2000 UTC (17 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored)

Explicitly pass buffer flags into a xfs_trans_get_buf call for an inode
buffer. We will eventually turn off the XFS_BUF_MAPPED flag here.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Jun 9 06:40:03 2000 UTC (17 years, 4 months ago) by ananth
Branch: MAIN
Changes since 1.135: +3 -4 lines
Diff to previous 1.135 (colored)

Merge of 2.3.99pre2-xfs:slinx:63026a originally by cattelan on 05/30/00
  Masive type update 
  all daddr_t -> xfs_daddr_t
  caddr_t -> xfs_caddr_t
  off_t   -> xfs_off_t
  ino_t   -> xfs_ino_t
  off64_t -> xfs_off_t 
  Removed need for file xfs_to_linux.h and lunux_to_xfs.h

Merge of 2.3.99pre2-xfs:slinx:63306a originally by dxm on 06/04/00
  RT/GRIO checkin

Revision 1.135 / (download) - annotate - [select for diffs], Fri Jun 9 04:39:57 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.134: +102 -110 lines
Diff to previous 1.134 (colored)

ARCH: Support big-endian ONLY
Merge of 2.3.99pre2-xfs:slinx:62350a by ananth.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Jun 9 04:16:09 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.133: +1 -1 lines
Diff to previous 1.133 (colored)

Merge of 2.3.99pre2-xfs:slinx:60511a by ananth.

  fix wrapping of di_next_unlinked

Revision 1.133 / (download) - annotate - [select for diffs], Fri Jun 9 03:49:57 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.132: +36 -36 lines
Diff to previous 1.132 (colored)

use arch where available
Merge of 2.3.99pre2-xfs:slinx:58601a by ananth.

Revision 1.132 / (download) - annotate - [select for diffs], Fri Jun 9 03:48:14 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.131: +44 -36 lines
Diff to previous 1.131 (colored)

arch mods - finish inobt
Merge of 2.3.99pre2-xfs:slinx:58504a by ananth.

Revision 1.131 / (download) - annotate - [select for diffs], Fri Jun 9 03:26:27 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.130: +65 -55 lines
Diff to previous 1.130 (colored)

Merge of 2.3.99pre2-xfs:slinx:56978a by ananth.

  architecture independence for the agi structure.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Jun 9 03:15:59 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.129: +4 -4 lines
Diff to previous 1.129 (colored)

add ARCH_GET macro
Merge of 2.3.99pre2-xfs:slinx:56110a by ananth.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Jun 9 02:50:02 2000 UTC (17 years, 4 months ago) by kenmcd
Branch: MAIN
CVS Tags: GPL-ENCUMBRANCE
Changes since 1.128: +25 -12 lines
Diff to previous 1.128 (colored)

Updated copyright and license notices, ready for open source release
Merge of 2.3.99pre2-xfs:slinx:55821a by ananth.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Jun 9 02:29:42 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
CVS Tags: DELETE
Changes since 1.127: +1 -1 lines
Diff to previous 1.127 (colored)

cleanup XFS use of device types
Merge of 2.3.99pre2-xfs:slinx:55615a by ananth.

  Merge of 2.3.42-xfs:slinx:55615a by lord.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Jun 9 02:24:16 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.126: +1 -1 lines
Diff to previous 1.126 (colored)

Merge of 2.3.99pre2-xfs:slinx:55531a by ananth.

  Merge of 2.3.42-xfs:slinx:55531a by ananth.
  change buffer member access to use macros.
  pagebuf meta data once again compiles.

Revision 1.126 / (download) - annotate - [select for diffs], Fri Jun 9 02:22:51 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.125: +43 -27 lines
Diff to previous 1.125 (colored)

architecture changes: dinode_core, sf(1) dirs, dev files, dir(1) leaves
Merge of 2.3.99pre2-xfs:slinx:50068a by ananth.

  Merge of 2.3.42-xfs:slinx:50068a by ananth.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Jun 9 02:10:00 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.124: +1 -1 lines
Diff to previous 1.124 (colored)

Merge of 2.3.99pre2-xfs:slinx:46541a by ananth.

  Merge of 2.3.42-xfs:slinx:46541a by ananth.
  Header file cleanup
  removed the last of the
  #if defined(__linux__)
  #include <xfs_linux>
  #endif
  All os specific include file switches should now done
  in xfs_os_defs.h

Revision 1.124 / (download) - annotate - [select for diffs], Fri Jun 9 01:50:04 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.123: +2 -10 lines
Diff to previous 1.123 (colored)

Merge of 2.3.99pre2-xfs:slinx:46428a by ananth.

  Merge of 2.3.42-xfs:slinx:46428a by ananth.
  remove unused include files.

Revision 1.123 / (download) - annotate - [select for diffs], Fri Jun 9 00:54:56 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

Merge of 2.3.99pre2-xfs:slinx:44904a by ananth.

  Merge of 2.3.42-xfs:slinx:44904a by ananth.
  fix debug build with pagebuf meta-data

Revision 1.122 / (download) - annotate - [select for diffs], Fri Jun 9 00:03:30 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
Changes since 1.121: +19 -1 lines
Diff to previous 1.121 (colored)

Merge of 2.3.99pre2-xfs:slinx:44186a by ananth.

  Merge of 2.3.42-xfs:slinx:44186a by ananth.
  Copied GPL from slinx-xfs tree.

Revision 1.121 / (download) - annotate - [select for diffs], Tue Nov 23 20:52:36 1999 UTC (17 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

make all xfs buffer access be buftarg_t based

Revision 1.120 / (download) - annotate - [select for diffs], Mon Nov 22 19:39:07 1999 UTC (17 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.119: +2 -3 lines
Diff to previous 1.119 (colored)

virtualize interface to buffer data

Revision 1.119 / (download) - annotate - [select for diffs], Wed Nov 17 19:22:23 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.118: +19 -19 lines
Diff to previous 1.118 (colored)

replace struct buf and buf_t references with xfs_buf and xfs_buf_t

Revision 1.118 / (download) - annotate - [select for diffs], Wed Aug 18 17:43:46 1999 UTC (18 years, 2 months ago) by cattelan
Branch: MAIN
Changes since 1.117: +5 -1 lines
Diff to previous 1.117 (colored)

First compiling version of mkfs unsing XFS libsim.
Mostly just addtions of cut up irix header files.

Revision 1.117 / (download) - annotate - [select for diffs], Thu Feb 4 01:28:30 1999 UTC (18 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.116: +3 -0 lines
Diff to previous 1.116 (colored)

Change includes for v2 directory support.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Dec 4 21:44:23 1998 UTC (18 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.115: +1 -1 lines
Diff to previous 1.115 (colored)

Add casts to make this compile cleanly -64.
pv: 617654

Revision 1.115 / (download) - annotate - [select for diffs], Mon Nov 30 19:59:13 1998 UTC (18 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.114: +3 -2 lines
Diff to previous 1.114 (colored)

Set minalignslop in allocator arguments structure.
pv: 652107

Revision 1.114 / (download) - annotate - [select for diffs], Fri Jan 16 22:16:44 1998 UTC (19 years, 9 months ago) by mad
Branch: MAIN
Changes since 1.113: +2 -1 lines
Diff to previous 1.113 (colored)

pv: 539225
rv: kayuri, yohn
Set buffer usage type (b_bvtype).

Revision 1.113 / (download) - annotate - [select for diffs], Mon Jan 12 18:50:57 1998 UTC (19 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

In xfs_dialloc, log the agi earlier so if we exit the routine
due to an error, it still gets logged.
rv: rcc@engr
pv: 556403

Revision 1.112 / (download) - annotate - [select for diffs], Sat Dec 20 00:57:36 1997 UTC (19 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.111: +8 -5 lines
Diff to previous 1.111 (colored)

Add error injection points for places where we read
metadata blocks (and check magic numbers).
pv: 556405
rv: mostek@cray.com

Revision 1.111 / (download) - annotate - [select for diffs], Wed Oct 8 18:17:42 1997 UTC (20 years ago) by lord
Branch: MAIN
Changes since 1.110: +16 -2 lines
Diff to previous 1.110 (colored)

make sure that m_maxicount is a multiple of the number of inodes we
allocate in one go. Otherwise we can refuse to allocate new inodes
but still show up with some free in a statvfs call.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Sep 16 21:55:29 1997 UTC (20 years, 1 month ago) by nowicki
Branch: MAIN
Changes since 1.109: +4 -7 lines
Diff to previous 1.109 (colored)

Use an atomic op on m_agirotor so that directories created concurrently
still end up in different allocation groups.

Revision 1.109 / (download) - annotate - [select for diffs], Fri Sep 12 17:45:33 1997 UTC (20 years, 1 month ago) by lord
Branch: MAIN
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

Add buffer targeting stuff

Revision 1.108 / (download) - annotate - [select for diffs], Wed Aug 20 01:26:38 1997 UTC (20 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

Turn m_inoalign (fsblocks) into m_inoalign_mask (mask for fsblocks)
to avoid divisions.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Jul 31 01:02:46 1997 UTC (20 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.106: +27 -21 lines
Diff to previous 1.106 (colored)

Change xfs_dialloc so it doesn't pop an assert if okalloc is
false and we don't see free inodes in an ag, instead loop on
to the next ag.

Revision 1.106 / (download) - annotate - [select for diffs], Tue Jul 15 17:58:38 1997 UTC (20 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.105: +32 -29 lines
Diff to previous 1.105 (colored)

Add okalloc argument, to control whether allocation is done.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Apr 30 21:52:51 1997 UTC (20 years, 5 months ago) by sup
Branch: MAIN
Changes since 1.104: +9 -4 lines
Diff to previous 1.104 (colored)

agi freecount may not be accurate in core, if we are abrubtly shutting
down the filesystem.
,

Revision 1.104 / (download) - annotate - [select for diffs], Sun Apr 6 02:56:07 1997 UTC (20 years, 6 months ago) by sup
Branch: MAIN
Changes since 1.103: +15 -3 lines
Diff to previous 1.103 (colored)

It's OK to notice an inconsistent agi_freecount when we're in the
middle of a forced shutdown.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Mar 27 02:36:06 1997 UTC (20 years, 6 months ago) by kayuri
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

Added requirement that inode chunks will be aligned on stripe unit boundaries
only if the stripe unit is a multiple of m_inoalign (bug 397746).

Revision 1.102 / (download) - annotate - [select for diffs], Sat Mar 15 00:41:40 1997 UTC (20 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.101: +94 -58 lines
Diff to previous 1.101 (colored)

Error detection/recovery enhancements.  Check more result codes from
btree operations, returning corruption if bad results.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Mar 11 18:47:33 1997 UTC (20 years, 7 months ago) by kayuri
Branch: MAIN
Changes since 1.100: +30 -2 lines
Diff to previous 1.100 (colored)

Made changes to xfs_ialloc_ag_alloc() to align inode allocations to stripe
unit boundaries (bug 397746).

Revision 1.100 / (download) - annotate - [select for diffs], Thu Jan 30 02:56:02 1997 UTC (20 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.99: +67 -127 lines
Diff to previous 1.99 (colored)

Change interface to xfs_btree_dup_cursor for error recovery.
Error recovery source cleanup.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Jan 25 02:55:09 1997 UTC (20 years, 8 months ago) by sup
Branch: MAIN
Changes since 1.98: +2 -2 lines
Diff to previous 1.98 (colored)

First cut of XFS I/O error handling changes.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Dec 12 01:46:48 1996 UTC (20 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

Fix some warnings: remove unused variables, add ARGSUSED and REFERENCED,
add casts.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Oct 31 03:21:06 1996 UTC (20 years, 11 months ago) by rcc
Branch: MAIN
Changes since 1.96: +17 -6 lines
Diff to previous 1.96 (colored)

439128 - change inum checking to deal with very large inode numbers

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jul 26 17:30:30 1996 UTC (21 years, 2 months ago) by yohn
Branch: MAIN
Changes since 1.95: +19 -19 lines
Diff to previous 1.95 (colored)

converted xfs to use the fast-path mrlock routines, mraccess and mrupdate

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jun 26 00:45:50 1996 UTC (21 years, 3 months ago) by ajs
Branch: MAIN
Changes since 1.94: +3 -1 lines
Diff to previous 1.94 (colored)

Make sure to set args.alignment in all cases in xfs_ialloc_ag_alloc().

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jun 4 19:08:18 1996 UTC (21 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.93: +42 -36 lines
Diff to previous 1.93 (colored)

Support for aligned inode allocation (bug 385316).  Support for
superblock versioning (bug 385292).  Some cleanup.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Apr 1 22:49:30 1996 UTC (21 years, 6 months ago) by ajs
Branch: MAIN
Changes since 1.92: +1 -1 lines
Diff to previous 1.92 (colored)

Changes for vnodes with behaviors.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Mar 5 07:47:14 1996 UTC (21 years, 7 months ago) by limes
Branch: MAIN
Changes since 1.91: +3 -1 lines
Diff to previous 1.91 (colored)

fix some compiler messages

Revision 1.91 / (download) - annotate - [select for diffs], Wed Feb 21 05:00:29 1996 UTC (21 years, 7 months ago) by ack
Branch: MAIN
Changes since 1.90: +6 -6 lines
Diff to previous 1.90 (colored)

auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_ialloc.c,v
> ----------------------------
> revision 1.92
> date: 1996/02/20 23:40:01;  author: ajs;  state: Exp;  lines: +5 -5
> 350478 Make the inode cluster size variable.
> =============================================================================

Revision 1.90 / (download) - annotate - [select for diffs], Fri Feb 16 21:37:30 1996 UTC (21 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

Use XFS_ERROR macro where it was missing in several places.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Feb 9 01:14:18 1996 UTC (21 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

Move the include of sys/debug.h under #define _KERNEL for compile errors.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jan 16 03:54:33 1996 UTC (21 years, 9 months ago) by ack
Branch: MAIN
Changes since 1.87: +33 -26 lines
Diff to previous 1.87 (colored)

auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_ialloc.c,v
> ----------------------------
> revision 1.91
> date: 1996/01/10 21:06:32;  author: ajs;  state: Exp;  lines: +34 -27
> 326000 Use the new xfs_btree_del_cursor interface.
> =============================================================================

Revision 1.87 / (download) - annotate - [select for diffs], Tue Oct 10 10:45:43 1995 UTC (22 years ago) by ack
Branch: MAIN
Changes since 1.86: +45 -13 lines
Diff to previous 1.86 (colored)

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_ialloc.c,v
> ----------------------------
> revision 1.90
> date: 1995/10/10 00:58:28;  author: doucette;  state: Exp;  lines: +16 -7
> Check for hitting the max % of inode space, fail the inode allocation.
> ----------------------------
> revision 1.89
> date: 1995/10/05 01:04:47;  author: ajs;  state: Exp;  lines: +30 -7
> 310776 Delete references to old inode uuid field. Initialize and
> support the new link count field and use the new inode version
> number when appropriate.
> ----------------------------
> revision 1.88
> date: 1995/10/04 00:47:28;  author: ajs;  state: Exp;  lines: +6 -15
> 310776 Back out last change.
> ----------------------------
> revision 1.87
> date: 1995/10/03 23:06:21;  author: ajs;  state: Exp;  lines: +16 -7
> 310776 Delete references to old inode uuid field.  Initialize
> and support the new link count field and use the new
> inode version number.
> =============================================================================

Revision 1.86 / (download) - annotate - [select for diffs], Wed Aug 16 23:49:13 1995 UTC (22 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored)

Change offset tables from ints to shorts to save space.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Aug 16 05:46:15 1995 UTC (22 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.84: +1 -0 lines
Diff to previous 1.84 (colored)

Add include of xfs_macros.h.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Aug 8 18:21:28 1995 UTC (22 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.83: +0 -1 lines
Diff to previous 1.83 (colored)

Remove include for sys/fs/xfs/xfs_inode_item.h, no longer needed.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Aug 7 19:27:30 1995 UTC (22 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.82: +1 -3 lines
Diff to previous 1.82 (colored)

Remove a couple of asserts from xfs_iget path so that bulkstat (1 inode)
can fail cleanly.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jun 22 23:23:35 1995 UTC (22 years, 3 months ago) by rcc
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

changed to use new agi header good version macros

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jun 8 18:35:44 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.80: +9 -2 lines
Diff to previous 1.80 (colored)

Add inode readahead for bulkstat - changed xfs_iget interface.

Revision 1.80 / (download) - annotate - [select for diffs], Wed May 24 22:29:30 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.79: +2 -0 lines
Diff to previous 1.79 (colored)

Add second union di_a to the disk inode (for the attribute data).

Revision 1.79 / (download) - annotate - [select for diffs], Tue May 9 21:21:38 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.78: +9 -9 lines
Diff to previous 1.78 (colored)

Add support for in-core and on-disk inodes with both data and
attribute forks, or just a data fork.  Change all the data structures
and macros used to manipulate the variable portion of the inode, to
support this feature.

Revision 1.78 / (download) - annotate - [select for diffs], Mon May 8 19:57:36 1995 UTC (22 years, 5 months ago) by curtis
Branch: MAIN
Changes since 1.77: +3 -2 lines
Diff to previous 1.77 (colored)

Change include sequence as a result of directory/attribute code restructuring.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Apr 28 21:07:54 1995 UTC (22 years, 5 months ago) by ajs
Branch: MAIN
Changes since 1.76: +10 -1 lines
Diff to previous 1.76 (colored)

261533 - Check for magic numbers when reading in meta-data blocks.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 13 03:15:09 1995 UTC (22 years, 6 months ago) by ajs
Branch: MAIN
Changes since 1.75: +337 -164 lines
Diff to previous 1.75 (colored)

First cut at disk error handling

Revision 1.75 / (download) - annotate - [select for diffs], Fri Mar 31 20:05:29 1995 UTC (22 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.74: +6 -11 lines
Diff to previous 1.74 (colored)

Include xfs_dir.h before xfs_dinode.h since it now has a dependency.
Fix up some of the SIM includes.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 9 03:50:15 1995 UTC (22 years, 7 months ago) by ajs
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Use b_ref.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Feb 23 00:57:14 1995 UTC (22 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.72: +31 -36 lines
Diff to previous 1.72 (colored)

Put the argument structures for xfs_bmap_alloc and xfs_alloc_vextent
on the stack instead of in the heap.  Move locals for xfs_bmapi and
xfs_bmbt_* routines from the heap to the stack.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Feb 9 03:15:47 1995 UTC (22 years, 8 months ago) by ajs
Branch: MAIN
Changes since 1.71: +88 -16 lines
Diff to previous 1.71 (colored)

259540 - Change the inode allocation code to use inode chunk size
buffers, and change xfs_dilocate() to look up an ino in the inode
btree to find out where its inode chunk must be aligned.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jan 31 18:58:57 1995 UTC (22 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.70: +4 -6 lines
Diff to previous 1.70 (colored)

Warning elimination: remove unused variables, tag some routines ARGSUSED,
add return statements, ifdef out some code.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Jan 31 00:04:53 1995 UTC (22 years, 8 months ago) by tap
Branch: MAIN
Changes since 1.69: +7 -1 lines
Diff to previous 1.69 (colored)

in the XFS simulator, define _KERNEL before including params.h. This
causes the off_t type to be defined as a long long rather than a long.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Dec 8 19:28:24 1994 UTC (22 years, 10 months ago) by ajs
Branch: MAIN
Changes since 1.68: +2 -1 lines
Diff to previous 1.68 (colored)

Call xfs_trans_inode_alloc_buf() on buffers containing newly
allocated inodes.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Nov 10 19:41:38 1994 UTC (22 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.67: +6 -2 lines
Diff to previous 1.67 (colored)

Make inode allocation reserve enough room in the a.g. for the inode
btree blocks to split.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Oct 11 22:06:25 1994 UTC (23 years ago) by doucette
Branch: MAIN
Changes since 1.66: +3 -1 lines
Diff to previous 1.66 (colored)

#ifndef SIM code not needed for programs linking with libsim.a, to
make them smaller.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Sep 29 20:18:25 1994 UTC (23 years ago) by doucette
Branch: MAIN
Changes since 1.65: +50 -2 lines
Diff to previous 1.65 (colored)

Add checking code under #if DEBUG in xfs_dialloc and xfs_difree, to check
the freecount if it's all in 1 buffer.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Sep 27 02:25:21 1994 UTC (23 years ago) by doucette
Branch: MAIN
Changes since 1.64: +17 -4 lines
Diff to previous 1.64 (colored)

Add locking around use of m_perag for growfs.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Sep 15 23:08:35 1994 UTC (23 years, 1 month ago) by curtis
Branch: MAIN
Changes since 1.63: +4 -2 lines
Diff to previous 1.63 (colored)

Fixed some ASSERTs that didn't check the right thing for 64KB blocksizes.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Sep 15 17:45:56 1994 UTC (23 years, 1 month ago) by doucette
Branch: MAIN
Changes since 1.62: +17 -16 lines
Diff to previous 1.62 (colored)

Fix handling of inode blocks that have more than 1 chunk (64 inodes)
in the block.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Sep 10 00:27:09 1994 UTC (23 years, 1 month ago) by doucette
Branch: MAIN
Changes since 1.61: +6 -1 lines
Diff to previous 1.61 (colored)

Look for 0's in agi_unlinked array, these are supposed to be legal
ag-inode numbers.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Aug 16 16:42:06 1994 UTC (23 years, 2 months ago) by ajs
Branch: MAIN
Changes since 1.60: +5 -2 lines
Diff to previous 1.60 (colored)

In xfs_dialloc(), set agno to the chosen ag after changing
it in the process of choosing an ag.  That way further references
to it are referencing the right value.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Aug 3 23:52:04 1994 UTC (23 years, 2 months ago) by curtis
Branch: MAIN
Changes since 1.59: +19 -9 lines
Diff to previous 1.59 (colored)

Fixed offsets table in inode logging code and field initialization code
to deal with newly added inode fields.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jul 19 21:58:45 1994 UTC (23 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.58: +29 -38 lines
Diff to previous 1.58 (colored)

Make xfs_ialloc_read_agi external so xfs_itable.c routines can call it.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 14 17:11:54 1994 UTC (23 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.57: +1 -0 lines
Diff to previous 1.57 (colored)

Add agi_dirino field support.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jul 14 01:37:37 1994 UTC (23 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (colored)

Eliminate long-long divide by turning it into a shift.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jun 16 02:19:11 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.55: +8 -5 lines
Diff to previous 1.55 (colored)

Change inode allocation group selection to take longest available
extent in a.g. as well as total free space.  Forgot this in last checkin.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jun 16 01:52:49 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.54: +31 -8 lines
Diff to previous 1.54 (colored)

Add per-allocation group in-memory structure to speed up allocation
selection of a.g.'s.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jun 9 19:38:45 1994 UTC (23 years, 4 months ago) by wei_hu
Branch: MAIN
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored)

Eliminate include of <sys/uuid.h>.

Revision 1.53 / (download) - annotate - [select for diffs], Thu May 26 23:05:16 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored)

Call xfs_trans_binval to invalidate buffers for blocks that are
now metadata and are or might become user data.

Revision 1.52 / (download) - annotate - [select for diffs], Wed May 25 21:26:28 1994 UTC (23 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.51: +7 -2 lines
Diff to previous 1.51 (colored)

Properly initialize the di_unlinked_next fields of newly allocated
inodes.

Revision 1.51 / (download) - annotate - [select for diffs], Mon May 23 23:10:18 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.50: +25 -21 lines
Diff to previous 1.50 (colored)

Allocate xfs_alloc_arg_t's from a zone instead of on the stack,
to reduce stack space used.

Revision 1.50 / (download) - annotate - [select for diffs], Mon May 23 17:08:07 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.49: +1 -1 lines
Diff to previous 1.49 (colored)

Make uids and gids 32-bits in the inode, rearranging things so that
alignment is preserved.  We had 1 word of slop before, now used up.

Revision 1.49 / (download) - annotate - [select for diffs], Fri May 20 02:01:20 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.48: +28 -22 lines
Diff to previous 1.48 (colored)

Convert xfs_alloc_vextent to take an xfs_alloc_arg_t* as an argument,
and all its callers to pass one in.  Saves a bunch of stack space.

Add some asserts looking for agi corruption.

Revision 1.48 / (download) - annotate - [select for diffs], Thu May 19 17:14:50 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (colored)

Remove xfs_alloc_extent, replace calls to it, with calls to xfs_alloc_vextent.

Revision 1.47 / (download) - annotate - [select for diffs], Wed May 18 02:12:15 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.46: +1 -1 lines
Diff to previous 1.46 (colored)

Add a "minleft" argument to allocation interfaces, requiring that many
blocks to be left in the allocation group after this allocation is done.

Revision 1.46 / (download) - annotate - [select for diffs], Fri May 13 18:56:17 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.45: +167 -77 lines
Diff to previous 1.45 (colored)

Use the inode btree to allocate inodes close to the parent, if in
the same a.g.
Simplify the select-ag routine so it doesn't go in both directions at once,
and uses the agirotor.  Remove the sameag flags, don't need them any more.

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 4 23:18:27 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.44: +2 -20 lines
Diff to previous 1.44 (colored)

Remove xfs_ialloc_find_free, turned into a macro XFS_IALLOC_FIND_FREE.

Revision 1.44 / (download) - annotate - [select for diffs], Wed May 4 00:21:02 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.43: +195 -271 lines
Diff to previous 1.43 (colored)

Add inode btree, replacing old freelist scheme.
This scheme isn't very smart yet about where new inodes are placed.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 22 22:58:08 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.42: +53 -53 lines
Diff to previous 1.42 (colored)

Change variable names from buf to bp to avoid global buf; also change
...buf to ...bp for consistency.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Apr 20 01:31:30 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.41: +18 -25 lines
Diff to previous 1.41 (colored)

Add more asserts for inode freelist corruption.
Change the allocated and free inode list manipulations in xfs_ialloc_ag_alloc
to be simpler, and to get the inodes linked onto the allocated list!

Revision 1.41 / (download) - annotate - [select for diffs], Sun Apr 17 23:34:26 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.40: +38 -38 lines
Diff to previous 1.40 (colored)

Change "functional" macros' names from lower to uppercase, for consistency
with everything else.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Apr 15 15:00:31 1994 UTC (23 years, 6 months ago) by tap
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

add "sys/uuid.h" include file.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Apr 12 01:16:44 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.38: +46 -67 lines
Diff to previous 1.38 (colored)

Split xfs_fsblock_t into multiple types.
Use mp instead of sbp in all the address macros.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Apr 6 20:58:56 1994 UTC (23 years, 6 months ago) by ajs
Branch: MAIN
Changes since 1.37: +64 -18 lines
Diff to previous 1.37 (colored)

Re-work xfs_dialloc() to be the new xfs_dialloc_ino()
and xfs_dialloc_finish() routines.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 4 18:14:11 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.36: +36 -17 lines
Diff to previous 1.36 (colored)

Add assert for null or errored buffer returned by xfs_trans_read_buf and
xfs_trans_get_buf.

Add asserts to catch inode freelist corruption.
Fix xfs_dinode_free bug where inode freelist is corrupted.
Fix xfs_ialloc_ag_select bug, bad looping.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 24 01:51:57 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.35: +14 -2 lines
Diff to previous 1.35 (colored)

Fix xfs_ialloc_ag_select to go through its loop twice, once with TRYLOCK
set and once without for the xfs_alloc_ag_freeblks call.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 23 01:19:08 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34 (colored)

Fix bug in xfs_alloc_ag_freeblks call, it needs to wait for agf buffer
lock, not give up if it can't get it.  At least, for now.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 15 23:47:15 1994 UTC (23 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.33: +3 -1 lines
Diff to previous 1.33 (colored)

Add inode field di_nblocks (number of direct and indirect fs blocks)
and keep track of it in the bmap code.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 4 18:14:36 1994 UTC (23 years, 7 months ago) by tap
Branch: MAIN
Changes since 1.32: +7 -1 lines
Diff to previous 1.32 (colored)

rearranged order of include files: grio.h needs to be before xfs_inode.h

Revision 1.32 / (download) - annotate - [select for diffs], Wed Feb 23 21:22:35 1994 UTC (23 years, 7 months ago) by ajs
Branch: MAIN
Changes since 1.31: +18 -8 lines
Diff to previous 1.31 (colored)

Make xfs_ifree() clear and log some additional fields.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Feb 22 16:29:38 1994 UTC (23 years, 7 months ago) by tap
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

add include file sys/grio.h.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Feb 18 01:05:36 1994 UTC (23 years, 8 months ago) by wei_hu
Branch: MAIN
Changes since 1.29: +59 -13 lines
Diff to previous 1.29 (colored)

new i/f to xfs_ialloc and xfs_dialloc to signal caller when current
transaction needs to be committed and call retried.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 16 02:17:48 1994 UTC (23 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.28: +3 -4 lines
Diff to previous 1.28 (colored)

Add mod, prod arguments to xfs_alloc_vextent, for extent sizes.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 1 02:31:25 1994 UTC (23 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Fix includes after splitting xfs_alloc_btree.h off from xfs_alloc.h.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 1 00:18:42 1994 UTC (23 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.26: +1 -1 lines
Diff to previous 1.26 (colored)

Fix includes after splitting xfs_bmap_btree.h off from xfs_bmap.h.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 29 00:45:21 1994 UTC (23 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Change names of fields for xfs_trans_mod_sb.  Add was-delayed argument
to block allocation calls.c

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 11 19:33:27 1994 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.24: +31 -33 lines
Diff to previous 1.24 (colored)

Add di_extsize and di_flags fields, plus value for di_flags.
Also add minimum and maximum inode size defines.  Slight reordering of
fields to avoid potential alignment problems.

Initialize more fields in the on-disk inode when they are allocated
from free disk space.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 7 22:14:52 1994 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.23: +18 -6 lines
Diff to previous 1.23 (colored)

New allocation scheme in transactions, so new arguments to xfs_alloc_vextent
and xfs_alloc_ag_freeblks routines.  Put the inode allocation call to
xfs_alloc_vextent in a loop because of the new scheme.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 5 01:33:46 1994 UTC (23 years, 9 months ago) by ajs
Branch: MAIN
Changes since 1.22: +7 -6 lines
Diff to previous 1.22 (colored)

Use new buffer cache interfaces.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jan 4 19:34:11 1994 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.21: +96 -43 lines
Diff to previous 1.21 (colored)

Reformatting to get function prototypes and definitions to match, both
having one-argument-per-line plus a comment.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 31 01:55:14 1993 UTC (23 years, 9 months ago) by ajs
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

First cut at making the transaction
code use the log manager interfaces.  xfs_trans.h now
depends on xfs_log.h, so we need to include it.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Dec 30 22:33:45 1993 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.19: +28 -20 lines
Diff to previous 1.19 (colored)

Finish commenting/reformatting.  Change type returned by xfs_dilocate
from int to void, since it never fails.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 28 06:44:02 1993 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

Convert to using two separate btree header block structures, with long
block pointers for BMAP btrees.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 27 22:24:08 1993 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.17: +99 -46 lines
Diff to previous 1.17 (colored)

Split allocation group header into two buffers; make superblock one
buffer long instead of one block long.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 23 02:01:38 1993 UTC (23 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.16: +41 -8 lines
Diff to previous 1.16 (colored)

Use xfs_btree_getblk instead of xfs_btree_bread where we don't need to
read in the old data.
Make the inode freelist more local, by looking for free inodes in the same
block as the one we're freeing.  If found, link the two together.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 21 02:53:02 1993 UTC (23 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Shrink inode core a little to get 2 bmap records in a btree root.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 15 01:09:49 1993 UTC (23 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.14: +255 -99 lines
Diff to previous 1.14 (colored)

Reformat to the new rules.  Add comments.
Remove include for xfs.h, this file has been removed.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Dec 14 00:35:39 1993 UTC (23 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.13: +6 -11 lines
Diff to previous 1.13 (colored)

Change xfs_difree to not change the mode and format fields of the inode;
let the caller do that (and log them incore).  Return the value that the
caller should store (and log) in the incore union.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 10 00:21:21 1993 UTC (23 years, 10 months ago) by ajs
Branch: MAIN
Changes since 1.12: +5 -8 lines
Diff to previous 1.12 (colored)

Modify to use new transaction interfaces.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 9 06:05:55 1993 UTC (23 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.11: +5 -12 lines
Diff to previous 1.11 (colored)

Various cleanups to get kernel-mode make to work.  Fix includes and
other problems for #ifndef SIM code.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 29 21:39:21 1993 UTC (23 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.10: +61 -1017 lines
Diff to previous 1.10 (colored)

Change inode mapping scheme from btree to direct.  Change inode numbering
macros to support this.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 19 21:41:35 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.9: +139 -140 lines
Diff to previous 1.9 (colored)

Use bit-per-field approach for struct field logging instead of calculating
offsets everywhere.  Fix some inode allocation problems.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 17 02:14:05 1993 UTC (23 years, 11 months ago) by ajs
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

Added new include file.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 17 01:41:34 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.7: +57 -69 lines
Diff to previous 1.7 (colored)

Get rid of warnings from ragnarok compilers by adding casts, changing
types, adding lint comments.
Get rid of xfs_extdesc_t, replace with xfs_bmbt_rec_t.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 13 02:00:37 1993 UTC (23 years, 11 months ago) by ajs
Branch: MAIN
Changes since 1.6: +3 -6 lines
Diff to previous 1.6 (colored)

xfs_dialloc() no longer modifies the mode field of the
newly allocated on-disk inode.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 12 18:49:41 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.5: +133 -162 lines
Diff to previous 1.5 (colored)

Make mount struct contain sb, not a pointer to it.  Add mp argument to
some routines, replace tp with mp in others.  Put the mp in the cursor,
as well as blocklog.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 11 01:21:34 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.4: +23 -17 lines
Diff to previous 1.4 (colored)

Separate core part of disk inode out, change refernces to those fields.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Nov 9 01:41:05 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.3: +373 -553 lines
Diff to previous 1.3 (colored)

More stuff in btree.[ch].  Structure field name changes.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Nov 6 22:04:31 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.2: +144 -124 lines
Diff to previous 1.2 (colored)

Get rid of nested includes.  Get rid of dummy freelist inode, use real
inode instead.  Get rid of xfs_ialloc_block_t, replace with xfs_btree_block_t.
Add cur argument to XFS_IALLOC... macros.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 30 00:24:09 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN
Changes since 1.1: +28 -17 lines
Diff to previous 1.1 (colored)

Make a real dinode structure separate from xfs_inode_free_t.  Add
magic number field to inodes.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 29 17:20:06 1993 UTC (23 years, 11 months ago) by doucette
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>