summaryrefslogtreecommitdiff
path: root/sys/ufs
AgeCommit message (Collapse)Author
2005-12-02Use ANSI function declarations, no binary change.Pedro Martelletto
Diff from Iruata Souza, thanks.
2005-11-30Use suser() to check for root privileges, okay hshoexer@ deraadt@Pedro Martelletto
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-11-15Only two `h' in threshold.Miod Vallat
2005-11-11Use ANSI function declarations and deregister, no binary change.Pedro Martelletto
Diff from Rui Reis <rui@rui.cx>, thanks.
2005-11-10Use ANSI function declarations and deregister, no binary change.Pedro Martelletto
Diff from Rui Reis <rui@rui.cx>, thanks.
2005-11-09ANSI function declarations and deregister, only ffs_softdep left to goPedro Martelletto
2005-11-09- Don't getnanotime() for read-only mountpoints or unmodified inodes,Pedro Martelletto
since we won't use that information. - Don't call getnanotime() a second time for IN_CHANGE inodes. - Space the code a bit, so it's actually readable. Testing jolan@ and krw@, okay krw@.
2005-11-08Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-11-06Use ANSI-style function declarations and deregister, no binary changePedro Martelletto
2005-11-06Replace obsolete comment with one that better describes reality.Pedro Martelletto
2005-11-05Don't go through the mountpoint vnode list if we want to skip them all.Pedro Martelletto
Based on a similar change made to NFS. Tested by many, thanks.
2005-10-25Make ffs_fserr() a macro, okay deraadt@Pedro Martelletto
2005-10-25Correctly remove elements from a pagedep dirrem list.Pedro Martelletto
Issued noted and fix okay'd by otto@.
2005-10-13pump up the high water mark on the dirhash pool to avoid page allocation ↵Michael Shalayeff
throttling; pedro@ ok
2005-10-06typoPedro Martelletto
2005-10-06Use part of the reserved space on the disk inode to scatter 16 more bitsPedro Martelletto
for the UID and GID, making them 32-bit. Based on what Linux does, with a slightly different implementation. Endianess issue in fsck noted by miod@, okay deraadt@.
2005-10-04typoPedro Martelletto
2005-09-29Sync dirty data when going from read-write to read-only.Pedro Martelletto
Verified against FreeBSD, closes PR 4526, okay deraadt@.
2005-09-26bring in two changes from freebsd:Pedro Martelletto
- keep track of free blocks dependencies, and only tell the syncer to release the blocks when there are no more dirty buffers associated - don't mark the inode dependency as done if we had to rollback its allocation due to the bitmap being inconsistent testing by krw, jsg, jmc and sturm, okay deraadt
2005-09-06Enforce splbio() while traversing the worklist inPedro Martelletto
softdep_disk_io_initiation(). Testing by dtucker@ and krw@, okay deraadt@ long ago.
2005-09-06Describe the steps involved in allocating a new inode and space the codePedro Martelletto
a bit, to improve readability. Okay krw@ and art@, input from deraadt@ and jmc@.
2005-08-14KNFPedro Martelletto
2005-08-14When leaving ext2fs_symlink(), unlock the vnode on both error andPedro Martelletto
non-error cases, so that later on we don't deadlock trying to look it up. Fixes buglet introduced in revision 1.38, okay deraadt@.
2005-08-08Add a few splassert() checks, okay art@Pedro Martelletto
2005-07-28no point in having an inode pool if we don't use itPedro Martelletto
2005-07-28KNFPedro Martelletto
2005-07-24Fix a bug introduced in rev 1.58. When relookup() is called withTodd C. Miller
SAVESTART set in cn_flags, it will add an extra reference to the directory vnode pointer, but only when () succeeds. We were doing vrele() regardless of relookup()'s return value, which caused the reference count to be decremented on error when it shouldn't be. OK pedro@ tedu@
2005-07-20Reintroduce the changes made by tedu in revision 1.50 of ffs_softdep.c,Pedro Martelletto
this time with a small tweak: when flushing the dependencies, don't update the inode twice, but update once, and then, if needed, fsync it. Doing so fixes the inode hangs some people were seeing. Various testing for a while, especially krw@ and millert@, okay deraadt@
2005-07-03Extended Attributes was a piece to get to ACLs, however ACLs have notDale Rahn
been worked on, so EA is pointless. Also the code is not enabled in GENERIC so it is not being tested or maintained.
2005-06-19wrap a goto label in the proper #ifdefTheo de Raadt
2005-06-18Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@Todd C. Miller
2005-06-10Tweak softdep_change_linkcnt() so we can specify whether we're willingPedro Martelletto
to be co-opted by softdep or not, and use this new interface to inform softdep in ufs_inactive() that the inode mode has changed. We don't want to be co-opted there as that might lead to undesired circular dependencies such as a vput() depending on another vput() to complete, or a process that is trying to free up a vnode being blocked trying to acquire a new vnode. Okay tedu@ deraadt@, thanks to all those who tested.
2005-05-28Disable the recently enabled optimization since it seems to cause aArtur Grabowski
loop in the kernel that makes us overwrite the stack and anything else we might run into. beck@ pedro@ ok
2005-05-28ufs_whiteout() is now pointless, remove it, okay millert@Pedro Martelletto
2005-05-24brelse() on failed bread()Pedro Martelletto
2005-05-23re-enable softdep notification of inode mode change,Pedro Martelletto
talked over with marius@ and tedu@
2005-05-22put VLOCKSWORK stuff under a single option, VFSDEBUGPedro Martelletto
2005-05-02quadradically -> quadratically, lots ofPedro Martelletto
2005-04-30Add support for large files (> 4GB).Niall O'Higgins
Automatically converts old filesystems to use this if they are already at revision 1 (like Linux). Revision 0 filesystems don't get converted (unlike Linux). From NetBSD
2005-04-23pay attention to failed relookups, compensate for a reference lost inPedro Martelletto
ufs_checkpath(), optimize a if/else's logical structure. diff mostly from netbsd, okay tedu@ fgsch@ deraadt@, tested by many, jcs@ in particular, thanks. fixes PRs 4040, 4126, 4169 and 4180.
2005-03-06Use V_SAVE instead of hardcoding it, no binary change.Pedro Martelletto
2005-03-01Avoid 32-bit overflow by casting blk arg to lblktosize() to (off_t). SolvesAaron Campbell
performance loss issue in some cases when reading past the 2GB boundary in large files. Testing by drahn@, otto@, danh@, krw@, tom@, jaredy@. From FreeBSD. tedu@, pedro@ ok.
2005-02-17miscellaneous typo fixes:Jean-Francois Brousseau
- sturct -> struct (spotted by pedro) - elimination of consecutive 'the' words ok jmc@, henning@, krw@, robert@, some whining by jolan@
2005-02-17Remove dead code that has moved to ufs_vfsops.c long ago.Pedro Martelletto
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-09When removing the last item from a non-empty worklist, the worklistTodd C. Miller
tail pointer must be updated; from FreeBSD (mckusick). Appears to fix problems I was seeing with processes stuck with WCHAN=inode in rev 1.50. OK pedro@ and tedu@.
2004-12-08Move a FREE_LOCK until after a potential continue so we don't tryTodd C. Miller
to free the lock twice. Doesn't actually make any difference for us (no .o file diff) since the code block that contains the continue is currently commented out but it makes sense to fix this now so if/when that code is enabled we don't get bitten. From FreeBSD, ok pedro@.
2004-12-07backout missed by tedu:Theo de Raadt
prev softdep merge could lead to inode wait deadlock for unknown reasons. revert.