summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_linux_balloc.c
Commit message (Collapse)AuthorAgeFilesLines
* move ptr deref's to after null ptr checkssam2005-02-241-2/+4
| | | | Noticed by: Coverity Prevent analysis tool
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-2/+2
|
* Fix the alpha tinderbox. The alpha specific bitops used by the bitmapmarcel2003-10-291-3/+1
| | | | | | | | | | code has the typical branch prediction detour, which creates cross- section branches. A LINT kernel is apparently large enough nowadays that the .text and .text2 sections cannot always be layed-out so that branches between them reach. The fix is to stop using the alpha-specific bitops and instead use the portable implementation used by all platforms other than alpha and i386.
* Change of plans: Add ext2_bitops.h with generic and portablemarcel2003-08-251-3/+1
| | | | | | | | implementations. Use those on platforms that don't have MD headers. Remove the ia64 MD header. We're going to use the C implementation there. Suggested by: bde
* Add compilation support for extfs on ia64, primarily to support LINT.marcel2003-08-231-3/+5
| | | | | The functions in ia64-bitops.h merely call panic() for now. They need to be implemented some day, just not today.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Complete the separation of ext2fs from ufs by copying the remainingiedowse2002-05-161-23/+22
| | | | | | | | | | shared code and converting all ufs references. Originally it may have made sense to share common features between the two filesystems, but recently it has only caused problems, the UFS2 work being the final straw. All UFS_* indirect calls are now direct calls to ext2_* functions, and ext2fs-specific mount and inode structures have been introduced.
* Put the bits in place for Alpha support for ext2. Not tested.mjacob2000-12-091-0/+2
|
* Support filesystems with the not-so-new "sparse_superblocks" feature.bde2000-11-031-6/+30
| | | | | | | | | | | When this feature is enabled, mke2fs doesn't necessarily allocate a super block and its associated descriptor blocks for every group. The (non-)allocations are reflected in the block bitmap. Since the filesystem code doesn't write to these blocks except for the first superblock, all it has to do to support them is to not count them in ext2_statfs() and not attempt to check them at mount time in ext2_check_blocks_bitmap() (the check has never been enabled in FreeBSD anyway).
* Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ingphk2000-10-291-1/+0
| | | | | | | | | | the offending inline function (BUF_KERNPROC) on it being #included already. I'm not sure BUF_KERNPROC() is even the right thing to do or in the right place or implemented the right way (inline vs normal function). Remove consequently unneeded #includes of <sys/proc.h>
* Separate the struct bio related stuff out of <sys/buf.h> intophk2000-05-051-0/+1
| | | | | | | | | | | | | | | <sys/bio.h>. <sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall not be made a nested include according to bdes teachings on the subject of nested includes. Diskdrivers and similar stuff below specfs::strategy() should no longer need to include <sys/buf.> unless they need caching of data. Still a few bogus uses of struct buf to track down. Repocopy by: peter
* ext2fs relies on UFS support code, and as a result also requiresrwatson2000-04-151-0/+3
| | | | | | | | | | extattr.h to be included. This fixes the broken ext2fs build as of the import of extattr code. Also added $FreeBSD: $ to a couple of files that didn't have them, without which I couldn't commit this fix. Reported by: "George W. Dinolt" <gdinolt@pacbell.net>
* Added a used #include (don't depend on "vnode_if.h" including <sys/buf.h>).bde1999-02-251-0/+1
|
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-2/+2
| | | | kernel compile
* Fixed bloatage of `struct inode'. We used 5 "spare" fields for ext2fs,bde1998-10-131-2/+2
| | | | | | | | | | | | | | but when i_effnlink was added to support soft updates, there was only room for 4 spares. The number of spares was not reduced, so the inode size became 260 (on i386's), or 512 after rounding up by malloc(). Use one spare field in `struct dinode' instead of the 5th spare field in the inode and reduced to 4 spares in the inode so that the size is 256 again. Changed the types of the spares in the inode from int to u_int32_t so that the inode size has more chance of being <= 256 under other arches, and downdated ext2fs to match (it was broken to use ints before rev.1.1).
* Support compiling with `gcc -ansi'.bde1998-04-151-5/+5
|
* Fix a problem with ext2fs so that filesystems mounted at reboot don'tdyson1997-08-041-1/+3
| | | | | | | | | keep ahold of buffers, and therefore leave filesystems dirty. I haven't been able to test, but the code compiles. Those who run -current, please test and report back!!! (Sorry :-)). PR: kern/3571 Submitted by: Dirk Keunecke <dk@panda.rhein-main.de>
* Removed unused #includes.bde1997-06-141-1/+0
|
* Use __i386__ instead of i386 in ifdefs.bde1997-04-011-3/+5
| | | | Don't compile unused (debugging?) functions.
* Fixed type mismatches. i_spare[N] in ufs/inode.h changed from long tobde1997-02-121-2/+2
| | | | | int. Change ext2fs to match. We probably already assume that ints have >= 32 bits.
* ext2_inode_cnv.c:bde1995-11-091-5/+2
| | | | | | | | | | | | | | | Included <sys/vnode.h> and its prerequisite <sys/proc.h>, and cleaned up includes. The vop_t changes made the non-inclusion of vnode.h fatal instead of just sloppy. i386_bitops.h: Changed `extern inline' to `static inline'. `extern inline' is a Linuxism that stops things from compiling without -O. Fixed idempotency identifier. Misc: Added prototypes. Staticized some functions so that prototypes are unnecessary. Added casts. Cleaned up includes.
* Cleaned up some lint and some obvious prototyping errors.dyson1995-11-081-3/+2
|
* Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFOdyson1995-11-051-0/+582
file for GPL restrictions. This code was ported to the BSD platform by Godmar Back <gback@facility.cs.utah.edu> and specifically to FreeBSD by John Dyson. This code is still green and should be used with caution. Additional changes to UFS necessary to make this code work will be commited seperately. Submitted by: Godmar Back <gback@facility.cs.utah.edu> Obtained from: Lites/Mach4
OpenPOWER on IntegriCloud