Up to [Development] / xfs-linux
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.198 / (download) - annotate - [select for diffs], Fri Oct 10 15:27:57 2008 UTC (9 years ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.197: +7 -7
lines
Diff to previous 1.197 (colored)
Always use struct xfs_btree_block instead of short / longform structures. Always use the generic xfs_btree_block type instead of the short / long structures. Add XFS_BTREE_SBLOCK_LEN / XFS_BTREE_LBLOCK_LEN defines for the length of a short / long form block. The rationale for this is that we will grow more btree block header variants to support CRCs and other RAS information, and always accessing them through the same datatype with unions for the short / long form pointers makes implementing this much easier. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32300a by kenmcd. Always use struct xfs_btree_block instead of short / longform structures.
Revision 1.197 / (download) - annotate - [select for diffs], Fri Oct 10 15:23:27 2008 UTC (9 years ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.196: +6 -7
lines
Diff to previous 1.196 (colored)
cleanup btree record / key / ptr addressing macros. Replace the generic record / key / ptr addressing macros that use cpp token pasting with simpler macros that do the job for just one given btree type. The new macros lose the cur argument and thus can be used outside the core btree code, but also gain an xfs_mount * argument to allow for checking the CRC flag in the near future. Note that many of these macros aren't actually used in the kernel code, but only in userspace (mostly in xfs_repair). Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32295a by kenmcd. cleanup btree record / key / ptr addressing macros.
Revision 1.196 / (download) - annotate - [select for diffs], Fri Oct 10 15:21:38 2008 UTC (9 years ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.195: +66 -8
lines
Diff to previous 1.195 (colored)
Cleanup maxrecs calculation. Clean up the way the maximum and minimum records for the btree blocks are calculated. For the alloc and inobt btrees all the values are pre-calculated in xfs_mount_common, and we switch the current loop around the ugly generic macros that use cpp token pasting to generate type names to two small helpers in normal C code. For the bmbt and bmdr trees these helpers also exist, but can be called during runtime, too. Here we also kill various macros dealing with them and inline the logic into the get_minrecs / get_maxrecs / get_dmaxrecs methods in xfs_bmap_btree.c. Note that all these new helpers take an xfs_mount * argument which will be needed to determine the size of a btree block once we add support for extended btree blocks with CRCs and other RAS information. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32292a by kenmcd. Cleanup maxrecs calculation.
Revision 1.195 / (download) - annotate - [select for diffs], Wed Sep 24 16:33:20 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.194: +28 -0
lines
Diff to previous 1.194 (colored)
add keys_inorder and recs_inorder btree methods Add methods to check whether two keys/records are in the righ order. This replaces the xfs_btree_check_key and xfs_btree_check_rec methods. For the callers from xfs_bmap.c just opencode the bmbt-specific asserts. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32208a by kenmcd. add keys_inorder and recs_inorder btree methods
Revision 1.194 / (download) - annotate - [select for diffs], Wed Sep 24 16:32:26 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.193: +0 -88
lines
Diff to previous 1.193 (colored)
kill xfs_bmbt_log_block and xfs_bmbt_log_recs These are equivalent to the xfs_btree_* versions, and the only remaining caller can be switched to the generic one after they are exported. Also remove some now dead infrastructure in xfs_bmap_btree.c. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32207a by kenmcd. kill xfs_bmbt_log_block and xfs_bmbt_log_recs
Revision 1.193 / (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.192: +9 -516
lines
Diff to previous 1.192 (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.192 / (download) - annotate - [select for diffs], Wed Sep 24 16:29:41 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.191: +22 -94
lines
Diff to previous 1.191 (colored)
move xfs_bmbt_killroot to common code xfs_bmbt_killroot is a mostly generic implementation of moving from a real block based root to an inode based root. So move it to xfs_btree.c where it can use all the nice infrastructure there and make it pointer size agnostic The new name for it is xfs_btree_kill_iroot, following the old naming but making it clear we're dealing with the root in inode case here, and to avoid confusion with xfs_btree_new_root which is used for the not inode rooted case. I've also added a comment describing what it does and why it's named the way it is. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32203a by kenmcd. move xfs_bmbt_killroot to common code
Revision 1.191 / (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.190: +55 -253
lines
Diff to previous 1.190 (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.190 / (download) - annotate - [select for diffs], Wed Sep 24 16:27:52 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.189: +1 -112
lines
Diff to previous 1.189 (colored)
move xfs_bmbt_newroot to common code xfs_bmbt_newroot is a mostly generic implementation of moving from an inode root to a real block based root. So move it to xfs_btree.c where it can use all the nice infrastructure there and make it pointer size agnostic The new name for it is xfs_btree_new_iroot, following the old naming but making it clear we're dealing with the root in inode case here, and to avoid confusion with xfs_btree_new_root which is used for the not inode rooted case. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32201a by kenmcd. move xfs_bmbt_newroot to common code
Revision 1.189 / (download) - annotate - [select for diffs], Wed Sep 24 16:26:10 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.188: +93 -182
lines
Diff to previous 1.188 (colored)
implement generic xfs_btree_split Make the btree split 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:32198a by kenmcd. implement generic xfs_btree_split
Revision 1.188 / (download) - annotate - [select for diffs], Wed Sep 24 16:25:18 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.187: +2 -136
lines
Diff to previous 1.187 (colored)
implement generic xfs_btree_lshift Make the btree left shift 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:32197a by kenmcd. implement generic xfs_btree_lshift
Revision 1.187 / (download) - annotate - [select for diffs], Wed Sep 24 16:24:27 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.186: +2 -140
lines
Diff to previous 1.186 (colored)
implement generic xfs_btree_rshift Make the btree right shift 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:32196a by kenmcd. implement generic xfs_btree_rshift
Revision 1.186 / (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.185: +0 -45
lines
Diff to previous 1.185 (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.185 / (download) - annotate - [select for diffs], Wed Sep 24 16:22:40 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.184: +5 -44
lines
Diff to previous 1.184 (colored)
implement generic xfs_btree_updkey From: Dave Chinner <dgc@sgi.com> Note that there are many > 80 char lines introduced due to the xfs_btree_key casts. But the places where this happens is throw-away code once the whole btree code gets merged into a common implementation. The same is true for the temporary xfs_alloc_log_keys define to the new name. All old users will be gone after a few patches. [hch: split out from bigger patch and minor adaptions] Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32193a by kenmcd. implement generic xfs_btree_updkey
Revision 1.184 / (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.183: +29 -168
lines
Diff to previous 1.183 (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.183 / (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.182: +8 -82
lines
Diff to previous 1.182 (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.182 / (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.181: +4 -84
lines
Diff to previous 1.181 (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.181 / (download) - annotate - [select for diffs], Wed Sep 24 16:19:01 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.180: +3 -0
lines
Diff to previous 1.180 (colored)
add helpers for addressing entities inside a btree block Add new helpers in xfs_btree.c to find the record, key and block pointer entries inside a btree block. To implement this genericly the ->get_maxrecs methods and two new xfs_btree_ops entries for the key and record sizes are used. Also add a big comment describing how the addressing inside a btree block works. Note that these helpers are unused until users are introduced in the next patches and this patch will thus cause some harmless compiler warnings. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32189a by kenmcd. add helpers for addressing entities inside a btree block
Revision 1.180 / (download) - annotate - [select for diffs], Wed Sep 24 16:18:09 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.179: +9 -0
lines
Diff to previous 1.179 (colored)
add get_maxrecs btree operation Factor xfs_btree_maxrecs into a per-btree operation. The get_maxrecs method is based on a patch from Dave Chinner. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32188a by kenmcd. add get_maxrecs btree operation
Revision 1.179 / (download) - annotate - [select for diffs], Wed Sep 24 16:17:16 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.178: +120 -242
lines
Diff to previous 1.178 (colored)
make btree tracing generic Make the existing bmap btree tracing generic so that it applies to all btree types. Some fragments lifted from a patch by Dave Chinner. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32187a by kenmcd. make btree tracing generic
Revision 1.178 / (download) - annotate - [select for diffs], Wed Sep 24 16:14:41 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.177: +7 -8
lines
Diff to previous 1.177 (colored)
refactor xfs_btree_readahead
From: Dave Chinner <dgc@sgi.com>
Refactor xfs_btree_readahead to make it more readable:
(a) remove the inline xfs_btree_readahead wrapper and move all checks out
of line into the main routine.
(b) factor out helpers for short/long form btrees
(c) move check for root in inodes from the callers into xfs_btree_readahead
[hch: split out from a big patch and minor cleanups]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:32182a by kenmcd.
refactor xfs_btree_readahead
Revision 1.177 / (download) - annotate - [select for diffs], Wed Sep 24 16:13:51 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.176: +1 -1
lines
Diff to previous 1.176 (colored)
add a long pointers flag to xfs_btree_cur Add a flag to the xfs btree cursor when using long (64bit) block pointers instead of checking btnum == XFS_BTNUM_BMAP. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32181a by kenmcd. add a long pointers flag to xfs_btree_cur
Revision 1.176 / (download) - annotate - [select for diffs], Wed Sep 24 16:13:01 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.175: +1 -0
lines
Diff to previous 1.175 (colored)
make btree root in inode support generic The bmap btree is rooted in the inode and not in a disk block. Make the support for this feature more generic by adding a btree flag to for this feature instead of relying on the XFS_BTNUM_BMAP btnum check. Also clean up xfs_btree_get_block where this new flag is used. Based upon a patch from Dave Chinner. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:32180a by kenmcd. make btree root in inode support generic
Revision 1.175 / (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.174: +59 -0
lines
Diff to previous 1.174 (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.174 / (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.173: +8 -8
lines
Diff to previous 1.173 (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.173 / (download) - annotate - [select for diffs], Wed Jun 25 06:17:01 2008 UTC (9 years, 3 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.172: +15 -0
lines
Diff to previous 1.172 (colored)
Allow xfs_bmbt_split() to fallback to the lowspace allocator algorithm If xfs_bmbt_split() cannot find an AG with sufficient free space to satisfy a full extent btree split then fall back to the lowspace allocator algorithm. Merge of xfs-linux-melb:xfs-kern:31359a by kenmcd. Allow xfs_bmbt_split() to fallback to the lowspace allocator algorithm
Revision 1.172 / (download) - annotate - [select for diffs], Wed Jun 25 06:16:08 2008 UTC (9 years, 3 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.171: +6 -2
lines
Diff to previous 1.171 (colored)
Restore the lowspace extent allocator algorithm When free space is running low the extent allocator may choose to allocate an extent from an AG without leaving sufficient space for a btree split when inserting the new extent (see where xfs_bmap_btalloc() sets minleft to 0). In this case the allocator will enable the lowspace algorithm which is supposed to allow further allocations (such as btree splits and newroots) to allocate from sequential AGs. This algorithm has been broken for a long time and this patch restores its behaviour. Merge of xfs-linux-melb:xfs-kern:31358a by kenmcd. Restore the lowspace extent allocator algorithm
Revision 1.171 / (download) - annotate - [select for diffs], Wed Jun 25 06:15:11 2008 UTC (9 years, 3 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.170: +14 -1
lines
Diff to previous 1.170 (colored)
use minleft when allocating in xfs_bmbt_split() The bmap btree split code relies on a previous data extent allocation (from xfs_bmap_btalloc()) to find an AG that has sufficient space to perform a full btree split, when inserting the extent. When converting unwritten extents we don't allocate a data extent so a btree split will be the first allocation. In this case we need to set minleft so the allocator will pick an AG that has space to complete the split(s). Merge of xfs-linux-melb:xfs-kern:31357a by kenmcd. use minleft when allocating in xfs_bmbt_split()
Revision 1.170 / (download) - annotate - [select for diffs], Fri Jun 20 16:19:53 2008 UTC (9 years, 3 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.169: +4 -34
lines
Diff to previous 1.169 (colored)
Always reset btree cursor after an insert After a btree insert operation a cursor can be invalid due to block splits and a maybe a new root block. We reset the cursor in xfs_bmbt_insert() in the cases where we think we need to but it isn't enough as we still see assertions. Just do what we do elsewhere and reset the cursor unconditionally. Also remove the fix to revalidate the original cursor in xfs_bmbt_insert(). Merge of xfs-linux-melb:xfs-kern:31342a by kenmcd. Always reset btree cursor after an insert
Revision 1.169 / (download) - annotate - [select for diffs], Wed Apr 9 06:17:24 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.168: +8 -8
lines
Diff to previous 1.168 (colored)
replace remaining __FUNCTION__ occurrences __FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Merge of xfs-linux-melb:xfs-kern:30775a by kenmcd. __FUNCTION__ is gcc-specific, use __func__
Revision 1.168 / (download) - annotate - [select for diffs], Tue Mar 25 05:14:51 2008 UTC (9 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.167: +36 -2
lines
Diff to previous 1.167 (colored)
Ensure a btree insert returns a valid cursor. When writing into preallocated regions there is a case where XFS can oops or hang doing the unwritten extent conversion on I/O completion. It turns out that the problem is related to the btree cursor being invalid. When we do an insert into the tree, we may need to split blocks in the tree. When we only split at the leaf level (i.e. level 0), everything works just fine. However, if we have a multi-level split in the btreee, the cursor passed to the insert function is no longer valid once the insert is complete. The leaf level split is handled correctly because all the operations at level 0 are done using the original cursor, hence it is updated correctly. However, when we need to update the next level up the tree, we don't use that cursor - we use a cloned cursor that points to the index in the next level up where we need to do the insert. Hence if we need to split a second level, the changes to the tree are reflected in the cloned cursor and not the original cursor. This clone-and-move-up-a-level-on-split behaviour recurses all the way to the top of the tree. The complexity here is that these cloned cursors do not point to the original index that was inserted - they point to the newly allocated block (the right block) and the original cursor pointer to that level may still point to the left block. Hence, without deep examination of the cloned cursor and buffers, we cannot update the original cursor with the new path from the cloned cursor. In these cases the original cursor could be pointing to the wrong block(s) and hence a subsequent modification to the tree using that cursor will lead to corruption of the tree. The crash case occurs when the tree changes height - we insert a new level in the tree, and the cursor does not have a buffer in it's path for that level. Hence any attempt to walk back up the cursor to the root block will result in a null pointer dereference. To make matters even more complex, the BMAP BT is rooted in an inode, so we can have a change of height in the btree *without a root split*. That is, if the root block in the inode is full when we split a leaf node, we cannot fit the pointer to the new block in the root, so we allocate a new block, migrate all the ptrs out of the inode into the new block and point the inode root block at the newly allocated block. This changes the height of the tree without a root split having occurred and hence invalidates the path in the original cursor. The patch below prevents xfs_bmbt_insert() from returning with an invalid cursor by detecting the cases that invalidate the original cursor and refresh it by do a lookup into the btree for the original index we were inserting at. Note that the INOBT, AGFBNO and AGFCNT btree implementations also have this bug, but the cursor is currently always destroyed or revalidated after an insert for those trees. Hence this patch only address the problem in the BMBT code. Merge of xfs-linux-melb:xfs-kern:30701a by kenmcd. Revalidate the btree cursor in xfs_bmbt_insert if we've done a multi-level split or a split that has changed the height of the tree. Some code assumes that the cursor returned after the insert is valid, so revalidating the cursor ensures that such code functions correctly.
Revision 1.167 / (download) - annotate - [select for diffs], Mon Nov 5 15:04:07 2007 UTC (9 years, 11 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.166: +1 -2
lines
Diff to previous 1.166 (colored)
optimize XFS_IS_REALTIME_INODE w/o realtime config Use XFS_IS_REALTIME_INODE in more places, and #define it to 0 if CONFIG_XFS_RT is off. This should be safe because mount checks in xfs_rtmount_init: # define xfs_rtmount_init(m) (((mp)->m_sb.sb_rblocks == 0)? 0 : (ENOSYS)) so if we get mounted w/o CONFIG_XFS_RT, no realtime inodes should be encountered after that. Defining XFS_IS_REALTIME_INODE to 0 saves a bit of stack space, presumeably gcc can optimize around the various "if (0)" type checks: xfs_alloc_file_space -8 xfs_bmap_adjacent -16 xfs_bmapi -8 xfs_bmap_rtalloc -16 xfs_bunmapi -28 xfs_free_file_space -64 xfs_imap +8 <-- ? hmm. xfs_iomap_write_direct -12 xfs_qm_dqusage_adjust -4 xfs_qm_vop_chown_reserve -4 Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Merge of xfs-linux-melb:xfs-kern:30014a by kenmcd. Use XFS_IS_REALTIME_INODE() rather than open coding the check.
Revision 1.166 / (download) - annotate - [select for diffs], Thu Aug 23 15:55:20 2007 UTC (10 years, 1 month ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.165: +2 -2
lines
Diff to previous 1.165 (colored)
Fix build regression from mod/commit which did cleanup of xfs_bmbt_*set_allf In sgi mod# xfs-linux-melb:xfs-kern:29319a, the variable renaming was not complete and variable 'b' was left unchanged for non-lbd 32 bit machines. Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com> Merge of xfs-linux-melb:xfs-kern:29469a by kenmcd. Fix build regression from mod/commit which did clean up of xfs_bmbt_set_allf/xfs_bmbt_disk_set_allf In sgi mod# xfs-linux-melb:xfs-kern:29319a, the variable renaming was not complete and variable 'b' was left unchanged for non-lbd 32 bit machines.
Revision 1.165 / (download) - annotate - [select for diffs], Thu Aug 2 16:07:02 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.164: +9 -19
lines
Diff to previous 1.164 (colored)
endianess annotations for xfs_bmbt_rec_t Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:29321a by kenmcd. Add endian annotations for xfs_bmbt_rec_t operations.
Revision 1.164 / (download) - annotate - [select for diffs], Thu Aug 2 16:05:27 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.163: +74 -126
lines
Diff to previous 1.163 (colored)
clean up xfs_bmbt_set_all/xfs_bmbt_disk_set_all xfs_bmbt_set_all/xfs_bmbt_disk_set_all are identical to xfs_bmbt_set_allf/xfs_bmbt_disk_set_allf except that the former take a xfs_bmbt_irec_t and the latter take the individual extent fields as scalar values. This patch reimplements xfs_bmbt_set_all/xfs_bmbt_disk_set_all as trivial wrappers around xfs_bmbt_set_allf/xfs_bmbt_disk_set_allf and cleans up the variable naming in xfs_bmbt_set_allf/xfs_bmbt_disk_set_allf to have some meaning instead of one char variable names. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:29319a by kenmcd. Reimplement xfs_bmbt_set_all/xfs_bmbt_disk_set_all as trivial wrappers around xfs_bmbt_set_allf/xfs_bmbt_disk_set_allf and clean up variable naming.
Revision 1.163 / (download) - annotate - [select for diffs], Thu Aug 2 16:04:40 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.162: +15 -16
lines
Diff to previous 1.162 (colored)
split ondisk vs incore versions of xfs_bmbt_rec_t currently xfs_bmbt_rec_t is used both for ondisk extents as well as host-endian ones. This patch adds a new xfs_bmbt_rec_host_t for the native endian ones and cleans up the fallout. There have been various endianess issues in the tracing / debug printf code that are fixed by this patch. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:29318a by kenmcd. split ondisk vs incore versions of xfs_bmbt_rec_t
Revision 1.162 / (download) - annotate - [select for diffs], Thu Aug 2 16:03:47 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.161: +4 -4
lines
Diff to previous 1.161 (colored)
remove confusing INT_ comments in xfs_bmap_btree.c Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:29317a by kenmcd. Cleanup unneeded comments.
Revision 1.161 / (download) - annotate - [select for diffs], Mon Jul 9 15:43:09 2007 UTC (10 years, 3 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.160: +17 -71
lines
Diff to previous 1.160 (colored)
Clean up function name handling in tracing code Remove the hardcoded "fnames" for tracing, and just embed them in tracing macros via __FUNCTION__. Kills a lot of #ifdefs too. Signed-Off-By: Eric Sandeen <sandeen@sandeen.net> Merge of xfs-linux-melb:xfs-kern:29099a by kenmcd. Use __FUNCTION__ rather than hardcoded fnames for tracing.
Revision 1.160 / (download) - annotate - [select for diffs], Wed Feb 7 02:51:56 2007 UTC (10 years, 8 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.159: +0 -76
lines
Diff to previous 1.159 (colored)
Remove a bunch of unused functions from XFS. Patch provided by Eric Sandeen (sandeen@sandeen.net). Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Merge of xfs-linux-melb:xfs-kern:28038a by kenmcd. Remove unused functions. Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Revision 1.159 / (download) - annotate - [select for diffs], Wed Feb 7 02:51:06 2007 UTC (10 years, 8 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.158: +4 -4
lines
Diff to previous 1.158 (colored)
Remove unused arguments from the XFS_BTREE_*_ADDR macros. It makes it incrementally clearer to read the code when the top of a macro spaghetti-pile only receives the 3 arguments it uses, rather than 2 extra ones which are not used. Also when you start pulling this thread out of the sweater (i.e. remove unused args from XFS_BTREE_*_ADDR), a couple other third arms etc fall off too. If they're not used in the macro, then they sometimes don't need to be passed to the function calling the macro either, etc.... Patch provided by Eric Sandeen (sandeen@sandeen.net). Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Merge of xfs-linux-melb:xfs-kern:28037a by kenmcd. Remove unused arguments from XFS_BTREE_*_ADDR macros. Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Revision 1.158 / (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.157: +1 -1
lines
Diff to previous 1.157 (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.157 / (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.156: +5 -5
lines
Diff to previous 1.156 (colored)
use NULL for pointer initialisation instead of zero-cast-to-ptr Merge of xfs-linux-melb:xfs-kern:26562a by kenmcd.
Revision 1.156 / (download) - annotate - [select for diffs], Fri Aug 4 13:21:19 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.155: +21 -28
lines
Diff to previous 1.155 (colored)
endianess annotations for xfs_bmbt_key Trivial as there are no incore users. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:26561a by kenmcd. endianess annotations for xfs_bmbt_key
Revision 1.155 / (download) - annotate - [select for diffs], Fri Aug 4 13:20:29 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.154: +16 -18
lines
Diff to previous 1.154 (colored)
endianess annotate XFS_BMAP_BROOT_PTR_ADDR Make sure it returns a __be64 and let the callers use the proper macros. Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:26560a by kenmcd. endianess annotate XFS_BMAP_BROOT_PTR_ADDR Make sure it returns a __be64 and let the callers use the proper macros.
Revision 1.154 / (download) - annotate - [select for diffs], Fri Aug 4 13:18:57 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.153: +12 -12
lines
Diff to previous 1.153 (colored)
add xfs_btree_check_lptr_disk variant which handles endian conversion Signed-off-by: Christoph Hellwig <hch@lst.de> Merge of xfs-linux-melb:xfs-kern:26558a by kenmcd. add xfs_btree_check_lptr_disk variant which handles endian conversion
Revision 1.153 / (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.152: +0 -2
lines
Diff to previous 1.152 (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.152 / (download) - annotate - [select for diffs], Tue May 23 19:28:08 2006 UTC (11 years, 4 months ago) by yingping
Branch: MAIN
Changes since 1.151: +4 -6
lines
Diff to previous 1.151 (colored)
In actual allocation of file system blocks and freeing extents, the transaction within each such operation may involve multiple locking of AGF buffer. While the freeing extent function has sorted the extents based on AGF number before entering into transaction, however, when the file system space is very limited, the allocation of space would try every AGF to get space allocated, this could potentially cause out-of-order locking, thus deadlock could happen. This fix mitigates the scarce space for allocation by setting aside a few blocks without reservation, and avoid deadlock by maintaining ascending order of AGF locking. Ensure no out-of-order locking of AGF in specifying allocation type for calling xfs_alloc_vextent.
Revision 1.151 / (download) - annotate - [select for diffs], Thu Mar 2 23:08:14 2006 UTC (11 years, 7 months ago) by alkirkco
Branch: MAIN
Changes since 1.150: +7 -3
lines
Diff to previous 1.150 (colored)
This mod re-organizes some of the in-core file extent code to prepare
for an upcoming mod which will introduce multi-level in-core extent
allocations. Although the in-core extent management is using a new
code path in this mod, the functionality remains the same.
Major changes include:
- Introduce 10 new subroutines which re-orgainze the existing code but
do NOT change functionality:
xfs_iext_get_ext()
xfs_iext_insert()
xfs_iext_add()
xfs_iext_remove()
xfs_iext_remove_inline()
xfs_iext_remove_direct()
xfs_iext_realloc_direct()
xfs_iext_direct_to_inline()
xfs_iext_inline_to_direct()
xfs_iext_destroy()
- Remove 2 subroutines (functionality moved to new subroutines above):
xfs_iext_realloc() -replaced by xfs_iext_add() and xfs_iext_remove()
xfs_bmap_insert_exlist() - replaced by xfs_iext_insert()
xfs_bmap_delete_exlist() - replaced by xfs_iext_remove()
- Replace all hard-coded (indexed) extent assignments with a call to
xfs_iext_get_ext()
- Replace all extent record pointer arithmetic (ep++, ep--, base + lastx,..)
with calls to xfs_iext_get_ext()
- Update comments to remove the idea of a single "extent list" and
introduce "extent record" terminology instead
- Change first parameter of xfs_check_nostate_extents() from an extent pointer
(*xfs_bmbt_rec_t*) to two parameters: 1) inode fork pointer (xfs_ifork_t*),
and 2) the index of the extent (xfs_extnum_t). These new parameters are needed
for the call to xfs_iext_get_ext() in xfs_check_nostate_extents().
- Replace indexed extent assignment with a call to xfs_iext_get_ext()
Revision 1.150 / (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.149: +115 -115
lines
Diff to previous 1.149 (colored)
Endianess annotations for various allocator data structures
Revision 1.149 / (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.148: +12 -26
lines
Diff to previous 1.148 (colored)
Update license/copyright notices to match the prefered SGI boilerplate. Merge of xfs-linux-melb:xfs-kern:23903a by kenmcd.
Revision 1.148 / (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.147: +9 -11
lines
Diff to previous 1.147 (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.147 / (download) - annotate - [select for diffs], Thu Sep 8 15:08:08 2005 UTC (12 years, 1 month ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.146: +4 -4
lines
Diff to previous 1.146 (colored)
Cleanup some -Wundef flag warnings in the endian macros (thanks Christoph). Merge of xfs-linux-melb:xfs-kern:23771a by kenmcd.
Revision 1.146 / (download) - annotate - [select for diffs], Wed May 18 09:18:24 2005 UTC (12 years, 5 months ago) by hch
Branch: MAIN
Changes since 1.145: +0 -14
lines
Diff to previous 1.145 (colored)
Remove dead code. Patch from Adrian Bunk
Revision 1.145 / (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.144: +2 -2
lines
Diff to previous 1.144 (colored)
Stop passing ARCH_CONVERT/ARCH_NOCONVERT around everywhere stop passing ARCH_CONVERT/ARCH_NOCONVERT around everywhere
Revision 1.144 / (download) - annotate - [select for diffs], Thu Jul 8 07:42:57 2004 UTC (13 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.143: +1 -1
lines
Diff to previous 1.143 (colored)
sparse: fix uses of null in place of zero and vice versa. From Chris Wedgwood.
Revision 1.143 / (download) - annotate - [select for diffs], Tue May 18 15:41:26 2004 UTC (13 years, 5 months ago) by roehrich
Branch: MAIN
Changes since 1.142: +1 -1
lines
Diff to previous 1.142 (colored)
Switch all XFSDEBUG to DEBUG
Revision 1.142 / (download) - annotate - [select for diffs], Fri Jan 2 02:07:51 2004 UTC (13 years, 9 months ago) by hch
Branch: MAIN
Changes since 1.141: +1 -1
lines
Diff to previous 1.141 (colored)
Small ktace fixes trace buffers are needed for XFS_TRACE, not XFS_DEBUG
Revision 1.141 / (download) - annotate - [select for diffs], Mon Oct 20 04:21:43 2003 UTC (13 years, 11 months ago) by nathans
Branch: MAIN
Changes since 1.140: +7 -5
lines
Diff to previous 1.140 (colored)
Fix build with tracing enabled, couple of portability macros, move externs into headers.
Revision 1.140 / (download) - annotate - [select for diffs], Mon Sep 15 04:36:29 2003 UTC (14 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.139: +22 -32
lines
Diff to previous 1.139 (colored)
Separate the big filesystems macro out into separate big inums and blknos macros; fix the check for too-large filesystems in the process.
Revision 1.139 / (download) - annotate - [select for diffs], Thu Aug 21 19:47:57 2003 UTC (14 years, 1 month ago) by sandeen
Branch: MAIN
Changes since 1.138: +4 -4
lines
Diff to previous 1.138 (colored)
Re-work xfs stats macros to support per-cpu data
Revision 1.138 / (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.137: +2815 -0
lines
Diff to previous 1.137 (colored)
The Big Move linux/fs/xfs/xfs_bmap_btree.c 1.136 Renamed to xfs_bmap_btree.c
Revision 1.137 / (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.136: +0 -2815
lines
Diff to previous 1.136 (colored)
Nuke
Revision 1.136 / (download) - annotate - [select for diffs], Thu May 1 16:22:06 2003 UTC (14 years, 5 months ago) by cattelan
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.135: +30 -1
lines
Diff to previous 1.135 (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.135 / (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.134: +33 -33
lines
Diff to previous 1.134 (colored)
Whitespace cleanup Clean up some whitespace... revert some whitespace changes from previous whitespace cleanup (incorrect tabs)
Revision 1.134 / (download) - annotate - [select for diffs], Mon Mar 17 06:02:57 2003 UTC (14 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.133: +9 -21
lines
Diff to previous 1.133 (colored)
Separate the quota source into its own subdirectory ala dmapi. Push a bunch of quota- and dmapi-specific code down into these subdirs which previously was compiled into the core XFS code, and don't descend into these subdirs if options config'd off. Separate the quota source into its own subdirectory ala dmapi. Push a bunch of quota- and dmapi-specific code down into these subdirs which previously was compiled into the core XFS code, and don't descend into these subdirs if options config'd off.
Revision 1.133 / (download) - annotate - [select for diffs], Tue Feb 25 15:39:36 2003 UTC (14 years, 7 months ago) by lord
Branch: MAIN
Changes since 1.132: +5 -12
lines
Diff to previous 1.132 (colored)
remove a couple more sync transactions from xfs remove the sync transaction from xfs_bmbt_killroot
Revision 1.132 / (download) - annotate - [select for diffs], Thu Oct 31 10:31:13 2002 UTC (14 years, 11 months ago) by nathans
Branch: MAIN
Changes since 1.131: +3 -3
lines
Diff to previous 1.131 (colored)
Fix compile error with XFS_BIG_FILESYSTEMS set. Fix compile error with XFS_BIG_FILESYSTEMS set.
Revision 1.131 / (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.130: +27 -27
lines
Diff to previous 1.130 (colored)
Undoes mod: 2.4.x-xfs:slinx:130826a Revert STATIC->static change
Revision 1.130 / (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.129: +27 -27
lines
Diff to previous 1.129 (colored)
Replace STATIC with static in xfs code
Revision 1.129 / (download) - annotate - [select for diffs], Wed Oct 16 14:52:30 2002 UTC (15 years ago) by lord
Branch: MAIN
Changes since 1.128: +0 -4
lines
Diff to previous 1.128 (colored)
fix xfs build on big endian architectures and cleanup a couple of build warnings. kill a dead code path in the extent endian code.
Revision 1.128 / (download) - annotate - [select for diffs], Fri Oct 11 14:26:10 2002 UTC (15 years ago) by lord
Branch: MAIN
Changes since 1.127: +0 -4
lines
Diff to previous 1.127 (colored)
remove debug print statements remove debug printk calls
Revision 1.127 / (download) - annotate - [select for diffs], Thu Oct 10 19:09:44 2002 UTC (15 years ago) by lord
Branch: MAIN
Changes since 1.126: +226 -47
lines
Diff to previous 1.126 (colored)
Switch xfs from using a big endian internal representation for the in memory copy of extents to a host byte order representation. The internal extents are read in once, then modified seperately from the on disk ones. Since we search and manipulate the extents multiple times, it is cheaper to convert them to host byte order once and then keep them in that format. Worth about 5 to 10% reduction in cpu time for some loads. Complicated by the fact that the in memory extents are written out to the log sometimes, and when expanding extents are used to write out the initial block of extents. define and use different bmbt functions depending on if we are manipulating disk or host byte ordered extents. Only define the second set of functions as different if we are on a little endian host.
Revision 1.126 / (download) - annotate - [select for diffs], Wed Oct 9 03:06:48 2002 UTC (15 years ago) by nathans
Branch: MAIN
Changes since 1.125: +26 -26
lines
Diff to previous 1.125 (colored)
Global search and replace of the b* memory routines to their mem* equivalents. (bcopy->memcopy, ovbcopy->memmove, bzero->memset, bcmp->memcmp).
Revision 1.125 / (download) - annotate - [select for diffs], Wed Jul 17 18:29:46 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.124: +5 -4
lines
Diff to previous 1.124 (colored)
be less aggressive caching btree block contents outside the block
Revision 1.124 / (download) - annotate - [select for diffs], Fri Jul 12 16:42:01 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.123: +78 -284
lines
Diff to previous 1.123 (colored)
Remove ifdefs for BMBT_USE_64 and XFS_LARGE_FILES, optimize a lot of endian conversion in the btree code
Revision 1.123 / (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.122: +63 -63
lines
Diff to previous 1.122 (colored)
whitespace cleanup
Revision 1.122 / (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.121: +1 -1
lines
Diff to previous 1.121 (colored)
Update copyright dates
Revision 1.121 / (download) - annotate - [select for diffs], Thu Apr 19 02:37:23 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.120: +4 -4
lines
Diff to previous 1.120 (colored)
change XFS_STATS macro so that it doesn't rely on cpp ## to construct individual field names for the xfsstats structure. fixes up some gcc compiler warnings, for recent versions of gcc.
Revision 1.120 / (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.119: +40 -40
lines
Diff to previous 1.119 (colored)
tidy up spurious whitespace & offsetting uncleanliness for those routines which I'm syncing with userspace at the moment.
Revision 1.119 / (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.118: +147 -356
lines
Diff to previous 1.118 (colored)
Kill gratuitous prototypes
Revision 1.118 / (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.117: +106 -106
lines
Diff to previous 1.117 (colored)
Get rid of the last compiler warning OFF flags
Revision 1.117 / (download) - annotate - [select for diffs], Tue Apr 3 02:52:38 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
CVS Tags: Release-1_0_0
Changes since 1.116: +4 -4
lines
Diff to previous 1.116 (colored)
support group quotas in Linux/XFS.
Revision 1.116 / (download) - annotate - [select for diffs], Mon Sep 25 05:42:07 2000 UTC (17 years ago) by nathans
Branch: MAIN
CVS Tags: PreRelease-0_10
Changes since 1.115: +1 -59
lines
Diff to previous 1.115 (colored)
use xfs.h, remove all traces of SIM, push extern declarations into headers, dead code removal.
Revision 1.115 / (download) - annotate - [select for diffs], Thu Aug 3 19:57:24 2000 UTC (17 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.114: +3 -3
lines
Diff to previous 1.114 (colored)
Fix a couple of compile errors in byte flipping code which we do not normally get to.
Revision 1.114 / (download) - annotate - [select for diffs], Tue Jul 18 01:41:36 2000 UTC (17 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.113: +5 -5
lines
Diff to previous 1.113 (colored)
rework the xfs stats interface to facilitate code sharing. if there is no interface available to export the stats (i.e. procfs), don't bother compiling them in.
Revision 1.113 / (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.112: +7 -9
lines
Diff to previous 1.112 (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:63295a originally by nathans on 06/03/00 remove all references to stuff from ksa.h and psa.h. Merge of 2.3.99pre2-xfs:slinx:63306a originally by dxm on 06/04/00 RT/GRIO checkin
Revision 1.112 / (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.111: +285 -286
lines
Diff to previous 1.111 (colored)
ARCH: Support big-endian ONLY Merge of 2.3.99pre2-xfs:slinx:62350a by ananth.
Revision 1.111 / (download) - annotate - [select for diffs], Fri Jun 9 04:21:04 2000 UTC (17 years, 4 months ago) by ivanr
Branch: MAIN
Changes since 1.110: +10 -10
lines
Diff to previous 1.110 (colored)
endian convert bmap btree key Merge of 2.3.99pre2-xfs:slinx:61085a by ananth.
Revision 1.110 / (download) - annotate - [select for diffs], Fri Jun 9 04:19:38 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.109: +2 -2
lines
Diff to previous 1.109 (colored)
Merge of 2.3.99pre2-xfs:slinx:60972a by ananth. fix arch bug
Revision 1.109 / (download) - annotate - [select for diffs], Fri Jun 9 04:17:04 2000 UTC (17 years, 4 months ago) by dxm
Branch: MAIN
Changes since 1.108: +22 -22
lines
Diff to previous 1.108 (colored)
Merge of 2.3.99pre2-xfs:slinx:60659a by ananth. remaining architecture mods for xfs_bmbt_ptr_t
Revision 1.108 / (download) - annotate - [select for diffs], Fri Jun 9 03:55:40 2000 UTC (17 years, 4 months ago) by ivanr
Branch: MAIN
Changes since 1.107: +137 -136
lines
Diff to previous 1.107 (colored)
endian conversion support for bmap Merge of 2.3.99pre2-xfs:slinx:59943a by ananth.
Revision 1.107 / (download) - annotate - [select for diffs], Fri Jun 9 03:35:24 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.106: +158 -155
lines
Diff to previous 1.106 (colored)
Merge of 2.3.99pre2-xfs:slinx:57839a by ananth. architecture independence for btree header data structures.
Revision 1.106 / (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.105: +25 -12
lines
Diff to previous 1.105 (colored)
Updated copyright and license notices, ready for open source release Merge of 2.3.99pre2-xfs:slinx:55821a by ananth.
Revision 1.105 / (download) - annotate - [select for diffs], Fri Jun 9 02:10:00 2000 UTC (17 years, 4 months ago) by cattelan
Branch: MAIN
CVS Tags: DELETE
Changes since 1.104: +1 -1
lines
Diff to previous 1.104 (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.104 / (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.103: +2 -6
lines
Diff to previous 1.103 (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.103 / (download) - annotate - [select for diffs], Fri Jun 9 01:35:34 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.102: +1 -2
lines
Diff to previous 1.102 (colored)
use linux security mechanisms Merge of 2.3.99pre2-xfs:slinx:46379a by ananth. Merge of 2.3.42-xfs:slinx:46379a by ananth.
Revision 1.102 / (download) - annotate - [select for diffs], Sun Jan 30 09:59:06 2000 UTC (17 years, 8 months ago) by kenmcd
Branch: MAIN
Changes since 1.101: +11 -16
lines
Diff to previous 1.101 (colored)
Encumbrance review done. Add copyright and license words consistent with GPL. Refer to http://fsg.melbourne.sgi.com/reviews/ for details. There is a slight change in the license terms and conditions words to go with the copyrights, so most of the files are not getting new GPL's, just updated versions ... but there are 20-30 more files here as well.
Revision 1.101 / (download) - annotate - [select for diffs], Mon Jan 3 21:41:53 2000 UTC (17 years, 9 months ago) by kenmcd
Branch: MAIN
Changes since 1.100: +24 -1
lines
Diff to previous 1.100 (colored)
Encumbrance review done. Add copyright and license words consistent with GPL.
Revision 1.100 / (download) - annotate - [select for diffs], Tue Nov 23 16:21:39 1999 UTC (17 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.99: +4 -4
lines
Diff to previous 1.99 (colored)
hide b_bcount and b_blkno
Revision 1.99 / (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.98: +34 -34
lines
Diff to previous 1.98 (colored)
replace struct buf and buf_t references with xfs_buf and xfs_buf_t
Revision 1.98 / (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.97: +6 -1
lines
Diff to previous 1.97 (colored)
First compiling version of mkfs unsing XFS libsim. Mostly just addtions of cut up irix header files.
Revision 1.97 / (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.96: +3 -0
lines
Diff to previous 1.96 (colored)
Change includes for v2 directory support.
Revision 1.96 / (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.95: +10 -10
lines
Diff to previous 1.95 (colored)
Add casts to make this compile cleanly -64. pv: 617654
Revision 1.95 / (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.94: +4 -4
lines
Diff to previous 1.94 (colored)
Set minalignslop in allocator arguments structure. pv: 652107
Revision 1.94 / (download) - annotate - [select for diffs], Fri Jun 12 18:16:46 1998 UTC (19 years, 4 months ago) by ram
Branch: MAIN
Changes since 1.93: +28 -1
lines
Diff to previous 1.93 (colored)
Add routine xfs_check_nostate_extents() to do the required verification.
Revision 1.93 / (download) - annotate - [select for diffs], Fri Feb 20 23:09:22 1998 UTC (19 years, 7 months ago) by rm
Branch: MAIN
Changes since 1.92: +157 -57
lines
Diff to previous 1.92 (colored)
Implement unwritten extent flagging. rv: doucette@engr, rcc@engr, earsh@engr, kayuri@engr pv: 705217
Revision 1.92 / (download) - annotate - [select for diffs], Sun Dec 21 17:58:38 1997 UTC (19 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.91: +23 -23
lines
Diff to previous 1.91 (colored)
Add the buffer pointer to xfs_btree_check_sblock, xfs_btree_check_lblock, and xfs_btree_check_block, so it can trace failures on the buffer without having to figure out if there is a buffer. pv: 556753 rv: ram@cray.com
Revision 1.91 / (download) - annotate - [select for diffs], Sat Dec 20 00:22:43 1997 UTC (19 years, 10 months ago) by doucette
Branch: MAIN
Changes since 1.90: +1 -37
lines
Diff to previous 1.90 (colored)
Remove dead routine xfs_bmbt_read_agf. pv: 546137 rv: mostek@cray.com
Revision 1.90 / (download) - annotate - [select for diffs], Fri Jul 11 16:31:05 1997 UTC (20 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.89: +2 -2
lines
Diff to previous 1.89 (colored)
Fix bug in last checkin, only check for block reservation in xfs_bmbt_split if !delayed allocation, since in that case the reservation was not made in a transaction.
Revision 1.89 / (download) - annotate - [select for diffs], Wed Jul 9 17:34:51 1997 UTC (20 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.88: +5 -1
lines
Diff to previous 1.88 (colored)
If there's no space reservation when we get to xfs_bmbt_split, don't try the allocation (since it will pop an assert), just return ENOSPC.
Revision 1.88 / (download) - annotate - [select for diffs], Sat Mar 15 00:41:34 1997 UTC (20 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.87: +654 -384
lines
Diff to previous 1.87 (colored)
Error detection/recovery enhancements. Check more result codes from btree operations, returning corruption if bad results.
Revision 1.87 / (download) - annotate - [select for diffs], Fri Feb 21 23:07:03 1997 UTC (20 years, 7 months ago) by rcc
Branch: MAIN
Changes since 1.86: +15 -8
lines
Diff to previous 1.86 (colored)
341879,464898 - add async parameter to xfs_bmbt_delrec and xfs_bmbt_killroot to allow inactive to run asynchronously on wsync-mounted filesystems
Revision 1.86 / (download) - annotate - [select for diffs], Thu Jan 30 02:55:58 1997 UTC (20 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.85: +131 -102
lines
Diff to previous 1.85 (colored)
Change interface to xfs_btree_dup_cursor for error recovery. Error recovery source cleanup.
Revision 1.85 / (download) - annotate - [select for diffs], Sat Jan 25 02:41:20 1997 UTC (20 years, 8 months ago) by sup
Branch: MAIN
Changes since 1.84: +3 -3
lines
Diff to previous 1.84 (colored)
Part of XFS I/O error handling changes. xfs_trans_read_buf() signature changed.
Revision 1.84 / (download) - annotate - [select for diffs], Thu Jul 4 01:48:23 1996 UTC (21 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.83: +1 -1
lines
Diff to previous 1.83 (colored)
Move the lowspace indicator into the flist structure, so it can be seen across multiple xfs_bmapi calls in the same transaction (bug 396248).
Revision 1.83 / (download) - annotate - [select for diffs], Wed Jun 19 06:03:10 1996 UTC (21 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.82: +4 -3
lines
Diff to previous 1.82 (colored)
Fix type of difference variable in xfs_bmbt_lookup so it's big enough to hold all relevant values.
Revision 1.82 / (download) - annotate - [select for diffs], Wed Jun 12 01:18:26 1996 UTC (21 years, 4 months ago) by sup
Branch: MAIN
Changes since 1.81: +30 -1
lines
Diff to previous 1.81 (colored)
We weren't accounting for some disk blocks earlier for quotas. Added them.
Revision 1.81 / (download) - annotate - [select for diffs], Tue Jun 4 19:01:57 1996 UTC (21 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.80: +5 -266
lines
Diff to previous 1.80 (colored)
Remove some dead debugging code. Other cleanup. Support for aligned allocations (bug 385292).
Revision 1.80 / (download) - annotate - [select for diffs], Fri Feb 16 21:37:24 1996 UTC (21 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.79: +3 -2
lines
Diff to previous 1.79 (colored)
Use XFS_ERROR macro where it was missing in several places.
Revision 1.79 / (download) - annotate - [select for diffs], Fri Feb 9 01:14:10 1996 UTC (21 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.78: +2 -2
lines
Diff to previous 1.78 (colored)
Move the include of sys/debug.h under #define _KERNEL for compile errors.
Revision 1.78 / (download) - annotate - [select for diffs], Wed Jan 31 05:40:32 1996 UTC (21 years, 8 months ago) by ack
Branch: MAIN
Changes since 1.77: +65 -9
lines
Diff to previous 1.77 (colored)
auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_bmap_btree.c,v
> ----------------------------
> revision 1.78
> date: 1996/01/30 19:08:23; author: doucette; state: Exp; lines: +66 -10
> Change sequences of xfs_bmbt_set_{startoff,startblock,blockcount} to
> a single xfs_bmbt_set_allf call (new interface).
> =============================================================================
Revision 1.77 / (download) - annotate - [select for diffs], Tue Jan 16 03:54:29 1996 UTC (21 years, 9 months ago) by ack
Branch: MAIN
Changes since 1.76: +10 -8
lines
Diff to previous 1.76 (colored)
auto-merge of changes from /proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_bmap_btree.c,v > ---------------------------- > revision 1.77 > date: 1996/01/10 21:06:28; author: ajs; state: Exp; lines: +11 -9 > 326000 Use the new xfs_btree_del_cursor interface. > =============================================================================
Revision 1.76 / (download) - annotate - [select for diffs], Tue Oct 24 07:44:16 1995 UTC (21 years, 11 months ago) by ack
Branch: MAIN
Changes since 1.75: +0 -0
lines
Diff to previous 1.75 (colored)
auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_bmap_btree.c,v > ---------------------------- > revision 1.76 > date: 1995/10/13 16:11:20; author: ajs; state: Exp; lines: +6 -6 > Put XFS tracing under ifdefs separate from DEBUG > ---------------------------- > revision 1.75 > date: 1995/10/13 00:28:17; author: doucette; state: Exp; lines: +2 -1 > Include sys/uuid.h since the uuid_t definition has been moved out > of sys/types.h for DCE. > =============================================================================
Revision 1.75 / (download) - annotate - [select for diffs], Tue Oct 17 08:20:03 1995 UTC (22 years ago) by ack
Branch: MAIN
Changes since 1.74: +7 -6
lines
Diff to previous 1.74 (colored)
auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/xfs_bmap_btree.c,v > ---------------------------- > revision 1.76 > date: 1995/10/13 16:11:20; author: ajs; state: Exp; lines: +6 -6 > Put XFS tracing under ifdefs separate from DEBUG > ---------------------------- > revision 1.75 > date: 1995/10/13 00:28:17; author: doucette; state: Exp; lines: +2 -1 > Include sys/uuid.h since the uuid_t definition has been moved out > of sys/types.h for DCE. > =============================================================================
Revision 1.74 / (download) - annotate - [select for diffs], Thu Aug 31 02:40:04 1995 UTC (22 years, 1 month ago) by ajs
Branch: MAIN
Changes since 1.73: +2 -2
lines
Diff to previous 1.73 (colored)
Fix a file system corruption bug introduced with the error handling changes. The parameters to xfs_bmbt_newroot() were reversed. This caused the logflags to be passed back incorrectly, so the inode was not logged correctly.
Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 16 23:49:06 1995 UTC (22 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.72: +3 -1
lines
Diff to previous 1.72 (colored)
Change offset tables from ints to shorts to save space.
Revision 1.72 / (download) - annotate - [select for diffs], Wed Aug 16 05:45:58 1995 UTC (22 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.71: +2 -1
lines
Diff to previous 1.71 (colored)
Add includes of xfs_macros.h, xfs_bit.h.
Revision 1.71 / (download) - annotate - [select for diffs], Thu Jun 22 23:22:30 1995 UTC (22 years, 3 months ago) by rcc
Branch: MAIN
Changes since 1.70: +2 -2
lines
Diff to previous 1.70 (colored)
changed to use new agi header good version macros
Revision 1.70 / (download) - annotate - [select for diffs], Tue Jun 13 00:07:58 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.69: +2 -0
lines
Diff to previous 1.69 (colored)
Add asserts in increment, decrement that the level exists.
Revision 1.69 / (download) - annotate - [select for diffs], Mon Jun 12 18:59:48 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.68: +8 -4
lines
Diff to previous 1.68 (colored)
Fix bug - don't call btree lookahead when we're at the root level, it will pop an assert.
Revision 1.68 / (download) - annotate - [select for diffs], Thu Jun 8 18:35:40 1995 UTC (22 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.67: +5 -0
lines
Diff to previous 1.67 (colored)
Add btree block readahead.
Revision 1.67 / (download) - annotate - [select for diffs], Sat May 20 00:19:52 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.66: +4 -2
lines
Diff to previous 1.66 (colored)
Fix tracing of bmap extents and bmap btree entries to use correct fork (data or attribute).
Revision 1.66 / (download) - annotate - [select for diffs], Fri May 19 22:41:54 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.65: +20 -11
lines
Diff to previous 1.65 (colored)
Fix several places using i_df (data fork) instead of looking at whichfork.
Revision 1.65 / (download) - annotate - [select for diffs], Thu May 18 21:27:02 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.64: +96 -71
lines
Diff to previous 1.64 (colored)
Split new root code out from xfs_bmbt_insrec to xfs_bmbt_newroot, so xfs_bmap_add_attrfork can call it too.
Revision 1.64 / (download) - annotate - [select for diffs], Tue May 9 21:21:23 1995 UTC (22 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.63: +24 -15
lines
Diff to previous 1.63 (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.63 / (download) - annotate - [select for diffs], Mon May 8 19:54:15 1995 UTC (22 years, 5 months ago) by curtis
Branch: MAIN
Changes since 1.62: +3 -2
lines
Diff to previous 1.62 (colored)
Changed include sequences as a result of new attribute/directory includes.
Revision 1.62 / (download) - annotate - [select for diffs], Fri Apr 28 21:07:51 1995 UTC (22 years, 5 months ago) by ajs
Branch: MAIN
Changes since 1.61: +22 -0
lines
Diff to previous 1.61 (colored)
261533 - Check for magic numbers when reading in meta-data blocks.
Revision 1.61 / (download) - annotate - [select for diffs], Thu Apr 13 03:14:49 1995 UTC (22 years, 6 months ago) by ajs
Branch: MAIN
Changes since 1.60: +311 -110
lines
Diff to previous 1.60 (colored)
First cut at disk error handling
Revision 1.60 / (download) - annotate - [select for diffs], Fri Mar 31 20:05:12 1995 UTC (22 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.59: +1 -0
lines
Diff to previous 1.59 (colored)
Include xfs_dir.h before xfs_dinode.h since the dinode union now includes a shortform directory.
Revision 1.59 / (download) - annotate - [select for diffs], Fri Mar 10 22:34:48 1995 UTC (22 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.58: +60 -51
lines
Diff to previous 1.58 (colored)
Fix bug 265637. Use bcopy, ovbcopy in places where we used loops to insert or delete entries from arrays, to speed it up.
Revision 1.58 / (download) - annotate - [select for diffs], Thu Mar 9 03:39:19 1995 UTC (22 years, 7 months ago) by ajs
Branch: MAIN
Changes since 1.57: +3 -1
lines
Diff to previous 1.57 (colored)
Use b_ref.
Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 28 01:08:41 1995 UTC (22 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.56: +213 -71
lines
Diff to previous 1.56 (colored)
Implement 32 and 64 bit versions of the xfs_bmbt_rec type, for speed on 64-bit kernels. Change the tracing code to use pointer-sized values for better typing.
Revision 1.56 / (download) - annotate - [select for diffs], Thu Feb 23 00:57:04 1995 UTC (22 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.55: +445 -432
lines
Diff to previous 1.55 (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.55 / (download) - annotate - [select for diffs], Wed Feb 22 20:46:47 1995 UTC (22 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.54: +24 -24
lines
Diff to previous 1.54 (colored)
Fix bugs 263156, 263632 - enable 64-bit file sizes in 64-bit kernels.
Revision 1.54 / (download) - annotate - [select for diffs], Tue Jan 31 18:58:18 1995 UTC (22 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.53: +5 -3
lines
Diff to previous 1.53 (colored)
Warning elimination: remove unused variables, tag some routines ARGSUSED, add return statements, ifdef out some code.
Revision 1.53 / (download) - annotate - [select for diffs], Fri Dec 30 23:50:00 1994 UTC (22 years, 9 months ago) by doucette
Branch: MAIN
Changes since 1.52: +8 -2
lines
Diff to previous 1.52 (colored)
Move #include for sys/param.h inside #define _KERNEL 1 to make ragnarok compile errors go away, for cmd/xfs/sim.
Revision 1.52 / (download) - annotate - [select for diffs], Thu Dec 22 00:34:19 1994 UTC (22 years, 9 months ago) by tap
Branch: MAIN
Changes since 1.51: +33 -35
lines
Diff to previous 1.51 (colored)
add type casts and cleanup code so file will compile without warnings.
Revision 1.51 / (download) - annotate - [select for diffs], Wed Nov 16 00:08:29 1994 UTC (22 years, 11 months ago) by tap
Branch: MAIN
Changes since 1.50: +2 -1
lines
Diff to previous 1.50 (colored)
add include of xfs_itable.h to get definition of XFS_DIFLAG_REALTIME.
Revision 1.50 / (download) - annotate - [select for diffs], Thu Sep 8 20:29:56 1994 UTC (23 years, 1 month ago) by doucette
Branch: MAIN
Changes since 1.49: +7 -1
lines
Diff to previous 1.49 (colored)
Add xfs statistics support for osview (per-processor counters for file system actions).
Revision 1.49 / (download) - annotate - [select for diffs], Thu Sep 8 03:24:03 1994 UTC (23 years, 1 month ago) by ajs
Branch: MAIN
Changes since 1.48: +3 -1
lines
Diff to previous 1.48 (colored)
Make transactions which free bmap btree blocks synchronous.
Revision 1.48 / (download) - annotate - [select for diffs], Tue Jul 26 01:37:39 1994 UTC (23 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.47: +2 -0
lines
Diff to previous 1.47 (colored)
Fix bug in btree delrec routines after last change: after an rshift at the leaf level we still need an increment of the ptr, since we only did the offsetting decrement at levels above the leaves.
Revision 1.47 / (download) - annotate - [select for diffs], Mon Jul 25 22:34:15 1994 UTC (23 years, 2 months ago) by doucette
Branch: MAIN
Changes since 1.46: +26 -10
lines
Diff to previous 1.46 (colored)
Fix delrec/join code to decrement the cursor at node levels, at the right point in each code path. Otherwise we will get btree corruption in some cases.
Revision 1.46 / (download) - annotate - [select for diffs], Fri Jul 22 01:14:09 1994 UTC (23 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.45: +1 -1
lines
Diff to previous 1.45 (colored)
Reorder include files with xfs_alloc.h before xfs_bmap.h since xfs_bmap.h now mentions xfs_alloctype_t.
Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 21 00:09:15 1994 UTC (23 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.44: +6 -6
lines
Diff to previous 1.44 (colored)
FIx bug in delrec where the keys of the wrong parent level are changed, because we modified the cursor for the next round, too early.
Revision 1.44 / (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.43: +3 -2
lines
Diff to previous 1.43 (colored)
Fix bug found by directory stress testing, mangled cursor after join.
Revision 1.43 / (download) - annotate - [select for diffs], Thu Jun 9 19:38:36 1994 UTC (23 years, 4 months ago) by wei_hu
Branch: MAIN
Changes since 1.42: +1 -3
lines
Diff to previous 1.42 (colored)
Eliminate include of <sys/uuid.h>.
Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 2 02:02:16 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.41: +4 -1
lines
Diff to previous 1.41 (colored)
Fix bugs in di_nblocks accounting, missed some block frees.
Revision 1.41 / (download) - annotate - [select for diffs], Fri May 27 01:47:04 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.40: +6 -6
lines
Diff to previous 1.40 (colored)
Fix popping assert due to calls to xfs_trans_binval on buffers that had also been xfs_trans_brelse'd.
Revision 1.40 / (download) - annotate - [select for diffs], Thu May 26 23:05:14 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.39: +6 -2
lines
Diff to previous 1.39 (colored)
Call xfs_trans_binval to invalidate buffers for blocks that are now metadata and are or might become user data.
Revision 1.39 / (download) - annotate - [select for diffs], Tue May 24 02:42:24 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.38: +401 -442
lines
Diff to previous 1.38 (colored)
Change locals for some xfs_bmbt routines to use a structure allocated from the heap, instead of using stack space.
Revision 1.38 / (download) - annotate - [select for diffs], Mon May 23 23:10:17 1994 UTC (23 years, 4 months ago) by doucette
Branch: MAIN
Changes since 1.37: +50 -44
lines
Diff to previous 1.37 (colored)
Allocate xfs_alloc_arg_t's from a zone instead of on the stack, to reduce stack space used.
Revision 1.37 / (download) - annotate - [select for diffs], Mon May 23 21:49:48 1994 UTC (23 years, 4 months ago) by ajs
Branch: MAIN
Changes since 1.36: +1 -4
lines
Diff to previous 1.36 (colored)
Move ktrace buffer initialization to xfs_init().
Revision 1.36 / (download) - annotate - [select for diffs], Fri May 20 17:42:02 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.35: +1 -1
lines
Diff to previous 1.35 (colored)
Fix bad assert missed when converting calls to xfs_alloc_vextent.
Revision 1.35 / (download) - annotate - [select for diffs], Fri May 20 02:01:19 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.34: +52 -55
lines
Diff to previous 1.34 (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.
Revision 1.34 / (download) - annotate - [select for diffs], Thu May 19 17:14:49 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.33: +8 -4
lines
Diff to previous 1.33 (colored)
Remove xfs_alloc_extent, replace calls to it, with calls to xfs_alloc_vextent.
Revision 1.33 / (download) - annotate - [select for diffs], Wed May 18 16:34:07 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.32: +13 -7
lines
Diff to previous 1.32 (colored)
Add lowspace argument & cursor field (change wasdel to flags bits), so lowspace algorithm gets propagated everywhere.
Revision 1.32 / (download) - annotate - [select for diffs], Wed May 18 02:12:14 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.31: +3 -2
lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Sun May 15 06:03:27 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.30: +11 -2
lines
Diff to previous 1.30 (colored)
Add per-inode tracing of bmap btree activity. Change names of bmap trace data types, to avoid conflict.
Revision 1.30 / (download) - annotate - [select for diffs], Mon May 9 20:18:29 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.29: +8 -10
lines
Diff to previous 1.29 (colored)
Fix bug in xfs_bmbt_killroot, causing block pointers to get scrambled.
Revision 1.29 / (download) - annotate - [select for diffs], Mon May 9 18:21:41 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.28: +2 -0
lines
Diff to previous 1.28 (colored)
Initialize all the fields of the btree record returned from xfs_bmbt_insrec, so that the tracing code will be happy & not hit an assert.
Revision 1.28 / (download) - annotate - [select for diffs], Mon May 9 17:16:51 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.27: +4 -4
lines
Diff to previous 1.27 (colored)
Change ifdefs on tracing code so simulation programs will still link without needing the tracing.
Revision 1.27 / (download) - annotate - [select for diffs], Mon May 9 05:17:42 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.26: +1 -3
lines
Diff to previous 1.26 (colored)
Trace buffers must be defined in non-debug kernels so idbg will be happy.
Revision 1.26 / (download) - annotate - [select for diffs], Mon May 9 04:38:21 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.25: +547 -88
lines
Diff to previous 1.25 (colored)
Add a bunch of tracing code for bmap btrees. Some cleanup & comments.
Revision 1.25 / (download) - annotate - [select for diffs], Wed May 4 00:20:51 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.24: +3 -2
lines
Diff to previous 1.24 (colored)
Add new include file xfs_ialloc_btree.h. Caused some include reordering.
Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 30 00:09:05 1994 UTC (23 years, 5 months ago) by tap
Branch: MAIN
Changes since 1.23: +7 -3
lines
Diff to previous 1.23 (colored)
fix assert in xfs_bmbt_insert(). It was not valid for real time partitions.
Revision 1.23 / (download) - annotate - [select for diffs], Thu Apr 28 01:24:38 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.22: +3 -2
lines
Diff to previous 1.22 (colored)
Add wasdel field to bmap cursor, use it in bmap btree code.
Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 23 17:57:39 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.21: +8 -4
lines
Diff to previous 1.21 (colored)
Add maxrecs argument to XFS_BTREE_REC_ADDR, XFS_BTREE_KEY_ADDR, and XFS_BTREE_PTR_ADDR to allow optimization in cases where the value has been precomputed.
Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 22 22:58:04 1994 UTC (23 years, 5 months ago) by doucette
Branch: MAIN
Changes since 1.20: +144 -144
lines
Diff to previous 1.20 (colored)
Change variable names from buf to bp to avoid global buf; also change ...buf to ...bp for consistency.
Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 20 18:57:25 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.19: +24 -8
lines
Diff to previous 1.19 (colored)
Call xfs_iroot_realloc from delrec, else the btree root in-memory grows large over time, and the size gets out of sync. Fix two places where we assumed that firstblock wasn't null. Add some asserts for bmap btree root code.
Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 18 20:47:09 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.18: +2 -2
lines
Diff to previous 1.18 (colored)
Fix syntax errors in small-files non-DEBUG code.
Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 17 23:34:24 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.17: +30 -30
lines
Diff to previous 1.17 (colored)
Change "functional" macros' names from lower to uppercase, for consistency with everything else.
Revision 1.17 / (download) - annotate - [select for diffs], Fri Apr 15 21:43:28 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.16: +4 -3
lines
Diff to previous 1.16 (colored)
Fix two places we were using buf (the global) instead of a local variable. This causes lots of grief, especially when we assign to it.
Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 15 14:56:38 1994 UTC (23 years, 6 months ago) by tap
Branch: MAIN
Changes since 1.15: +2 -1
lines
Diff to previous 1.15 (colored)
add "sys/uuid.h" include file.
Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 14 22:50:46 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.14: +46 -27
lines
Diff to previous 1.14 (colored)
Fix some types of bmap block pointers from xfs_bmbt_ptr_t to xfs_fsblock_t. Fix some uses of NULLFSBLOCK to NULLFILEOFF or NULLDFSBNO. Turn some more code on in #ifdef DEBUG instead of XFSDEBUG. Add some more checking code for corrupted block pointers.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 14 00:19:29 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.13: +33 -30
lines
Diff to previous 1.13 (colored)
Add an mp argument to xfs_bmap_add_free, for asserts. Change btree ptr variables from xfs_bmbt_ptr_t to xfs_fsblock_t so they won't be long-longs all the time.
Revision 1.13 / (download) - annotate - [select for diffs], Wed Apr 13 02:02:40 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.12: +81 -376
lines
Diff to previous 1.12 (colored)
Use xfs_bmbt_block_t instead of generic xfs_btree_lblock_t, and xfs_buf_to_bmbt_block instead of xfs_buf_to_lblock. Change XFS_BMAP_EXT_MAXRECS to take mp as argument, it now gets the answer directly from the mount structure. Remove all the debug-only functions that were copies of macros.
Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 12 23:08:28 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.11: +193 -0
lines
Diff to previous 1.11 (colored)
Turn xfs_bmbt_{get,set}_{all,startoff,startblock,blockcount} macros into
real routines because they're so expensive. Add asserts for them as well.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Apr 12 01:16:40 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.10: +18 -28
lines
Diff to previous 1.10 (colored)
Split xfs_fsblock_t into multiple types. Use mp instead of sbp in all the address macros.
Revision 1.10 / (download) - annotate - [select for diffs], Sat Apr 9 19:20:18 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.9: +8 -2
lines
Diff to previous 1.9 (colored)
Fix definitions for on-disk bmap btree macros, for the root minrecs and maxrecs values, need to use the new compressed root structure.
Revision 1.9 / (download) - annotate - [select for diffs], Sat Apr 9 19:01:15 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.8: +59 -0
lines
Diff to previous 1.8 (colored)
Add conversion routines xfs_bmbt_to_bmdr and xfs_bmdr_to_bmbt to go from on-disk to in-memory bmap btree roots.
Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 6 22:57:33 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.7: +14 -2
lines
Diff to previous 1.7 (colored)
Check that firstblock is set to something (ASSERT) before handing it to xfs_alloc_extent, which will fail otherwise. Accumulate cursor allocated values in successive levels of insrec calls, and clear the old cursor's value so del_cursor is happy. More asserts.
Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 4 18:14:10 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.6: +6 -2
lines
Diff to previous 1.6 (colored)
Add assert for null or errored buffer returned by xfs_trans_read_buf and xfs_trans_get_buf.
Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 1 23:13:19 1994 UTC (23 years, 6 months ago) by doucette
Branch: MAIN
Changes since 1.5: +2 -0
lines
Diff to previous 1.5 (colored)
Add allocated field to bmap btree cursors, to keep track of indirect blocks.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 15 23:47:05 1994 UTC (23 years, 7 months ago) by doucette
Branch: MAIN
Changes since 1.4: +8 -2
lines
Diff to previous 1.4 (colored)
Add inode field di_nblocks (number of direct and indirect fs blocks) and keep track of it in the bmap code.
Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 4 18:14:04 1994 UTC (23 years, 7 months ago) by tap
Branch: MAIN
Changes since 1.3: +6 -0
lines
Diff to previous 1.3 (colored)
rearranged order of include files: grio.h needs to be before xfs_inode.h
Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 22 16:29:23 1994 UTC (23 years, 7 months ago) by tap
Branch: MAIN
Changes since 1.2: +2 -1
lines
Diff to previous 1.2 (colored)
add include file sys/grio.h.
Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 1 02:31:18 1994 UTC (23 years, 8 months ago) by doucette
Branch: MAIN
Changes since 1.1: +2 -1
lines
Diff to previous 1.1 (colored)
Fix includes after splitting xfs_alloc_btree.h off from xfs_alloc.h.
Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:48 1994 UTC (23 years, 8 months ago) by doucette
Branch: MAIN
Initial revision