summaryrefslogtreecommitdiff
path: root/sys/gnu/ext2fs/ext2_linux_ialloc.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: $FreeBSD$Peter Wemm2000-08-031-0/+2
| | | | Notes: svn path=/stable/4/; revision=64171
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-2/+2
| | | | | | | kernel compile Notes: svn path=/head/; revision=43301
* Quick fix for not being able to sync all the buffers in boot() ifBruce Evans1998-10-031-5/+1
| | | | | | | | | | | | | | | | an ext2fs file system is mounted. The soft update changes added a check for B_DELWRI buffers. This exposed the complete brokenness of the previous quick fix for failing syncs (PR 3571, committed on 1997/08/04). Use a new buffer flag B_DIRTY and don't abuse B_DELWRI. B_DIRTY buffers are still written too late, as broken in the previous fix. This is fairly harmless, because B_DIRTY is only used for bitmap buffers and fsck.ext2 can fix up the bitmaps perfectly. Fixed a race in ULCK_BUF() (bremfree() was outside of the splbio() section). Notes: svn path=/head/; revision=39924
* Fixed printf format errors.Bruce Evans1998-07-111-1/+2
| | | | Notes: svn path=/head/; revision=37555
* Fixed (?) races in mark_buffer_dirty(). We abuse the buffer cacheBruce Evans1998-06-211-3/+6
| | | | | | | | | | | | | | | | | by hacking on locked buffers without getblk()ing them, and we didn't even use splbio() to prevent biodone() changing the buffer underneath use when a write completes. I think there was no problem in practice on i386's because the operations on b_flags and numdirtybufs happen to be atomic. We still depend on biodone()'s operations on b_flags not interfering with ours. I think there is only interference for B_ERROR, and this is harmless because errors for async writes are ignored anyway. Don't use mark_buffer_dirty() except for superblock-related metadata. It was used in just one case where ordinary BSD buffering is more natural. Notes: svn path=/head/; revision=37103
* Removed unused function ll_w_block(). It has always had races dueBruce Evans1998-06-211-18/+0
| | | | | | | | | | | to not using splbio(), and has rotted a little. The races were probably harmless in practice because this function was only used for superblock updates, and separate superblock updates are probably prevented from running into each other by doing part of the update synchronously. Notes: svn path=/head/; revision=37102
* Removed __FreeBSD__ ifdefs.Bruce Evans1997-12-021-2/+0
| | | | Notes: svn path=/head/; revision=31483
* `numdirtybuffers' was not maintained properly. This caused excessiveBruce Evans1997-10-071-2/+4
| | | | | | | | flushing of buffers in an attempt to reduce numdirtybuffers, and perhaps other problems. Notes: svn path=/head/; revision=30204
* Fix a problem with ext2fs so that filesystems mounted at reboot don'tJohn Dyson1997-08-041-1/+2
| | | | | | | | | | | | 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> Notes: svn path=/head/; revision=27881
* Fix a problem with the VN device. Specifically, the VN device canJohn Dyson1997-06-151-0/+6
| | | | | | | | | | | | | cause a problem of spiraling death due to buffer resource limitations. The vfs_bio code in general had little ability to handle buffer resource management, and now it does. Also, there are a lot more knobs for tuning the vfs_bio code now. The knobs came free because of the need that there always be some immediately available buffers (non-delayed or locked) for use. Note that the buffer cache code is much less likely to get bogged down with lots of delayed writes, even more so than before. Notes: svn path=/head/; revision=26664
* Use __i386__ instead of i386 in ifdefs.Bruce Evans1997-04-011-1/+3
| | | | | | | Don't compile unused (debugging?) functions. Notes: svn path=/head/; revision=24491
* ext2_inode_cnv.c:Bruce Evans1995-11-091-2/+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. Notes: svn path=/head/; revision=12159
* Cleaned up some lint and some obvious prototyping errors.John Dyson1995-11-081-2/+2
| | | | Notes: svn path=/head/; revision=12147
* Main code for the ext2fs filesystem. Please refer to the COPYRIGHT.INFOJohn Dyson1995-11-051-0/+520
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 Notes: svn path=/head/; revision=12115