CVS log for xfs-linux/Attic/xfs_iocore.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.55 / (download) - annotate - [select for diffs], Fri Sep 21 16:10:12 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.54: +0 -79 lines
Diff to previous 1.54 (unified)

kill xfs_iocore_t

xfs_iocore_t is a structure embedded in xfs_inode.  Except for one
field it just duplicates fields already in xfs_inode, and there is
nothing this abstraction buys us on XFS/Linux.  This patch removes
it and shrinks source and binary size of xfs aswell as shrinking
the size of xfs_inode by 60/44 bytes in debug/non-debug builds.


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

  kill xfs_iocore_t

Revision 1.54 / (download) - annotate - [select for diffs], Fri Sep 21 04:08:28 2007 UTC (10 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.53: +0 -40 lines
Diff to previous 1.53 (unified)

kill unnessecary ioops indirection

Currently there is an indirection called ioops in the XFS data I/O
path.  Various functions are called by functions pointers, but there
is no coherence in what this is for, and of course for XFS itself
it's entirely unused.  This patch removes it instead and significantly
reduces source and binary size of XFS while making maintaince easier.
Merge of xfs-linux-melb:xfs-kern:29737a by kenmcd.

  kill unnessecary ioops indirection

Revision 1.53 / (download) - annotate - [select for diffs], Fri Aug 24 16:18:10 2007 UTC (10 years, 1 month ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (unified)

kill struct bhv_vfs

Now that struct bhv_vfs doesn't have any members left we can kill it
and go directly from the super_block to the xfs_mount everywhere.


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

  remove struct bhv_vfs and go directly to the superblock.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 30 04:04:14 2007 UTC (10 years, 6 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.51: +1 -1 lines
Diff to previous 1.51 (unified)

Fix to prevent the notorious 'NULL files' problem after a crash.

The problem that has been addressed is that of synchronising updates of
the file size with writes that extend a file.  Without the fix the update
of a file's size, as a result of a write beyond eof, is independent of
when the cached data is flushed to disk.  Often the file size update would
be written to the filesystem log before the data is flushed to disk.  When
a system crashes between these two events and the filesystem log is
replayed on mount the file's size will be set but since the contents never
made it to disk the file is full of holes.  If some of the cached data was
flushed to disk then it may just be a section of the file at the end that
has holes.

There are existing fixes to help alleviate this problem, particularly in
the case where a file has been truncated, that force cached data to be
flushed to disk when the file is closed.  If the system crashes while the
file(s) are still open then this flushing will never occur.

The fix that we have implemented is to introduce a second file size, called
the in-memory file size, that represents the current file size as viewed by
the user.  The existing file size, called the on-disk file size, is the one
that get's written to the filesystem log and we only update it when it is
safe to do so.  When we write to a file beyond eof we only update the in-
memory file size in the write operation.  Later when the I/O operation, that
flushes the cached data to disk completes, an I/O completion routine will
update the on-disk file size.  The on-disk file size will be updated to the
maximum offset of the I/O or to the value of the in-memory file size if the
I/O includes eof.
Merge of xfs-linux-melb:xfs-kern:28322a by kenmcd.

  Fix to prevent the notorious 'NULL files' problem after a crash.

Revision 1.51 / (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.50: +0 -2 lines
Diff to previous 1.50 (unified)

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

Revision 1.50 / (download) - annotate - [select for diffs], Tue May 30 15:55:47 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.49: +1 -1 lines
Diff to previous 1.49 (unified)

Resolve a namespace collision on vfs/vfsops for FreeBSD porters.
Merge of xfs-linux-melb:xfs-kern:26106a by kenmcd.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Apr 13 10:13:05 2006 UTC (11 years, 6 months ago) by olaf
Branch: MAIN
Changes since 1.48: +3 -0 lines
Diff to previous 1.48 (unified)

Add parameters to xfs_bmapi() and xfs_bunmapi() to have them
report the range spanned by modifications to the in-core extent
map.  Add XFS_BUNMAPI() and XFS_SWAP_EXTENTS() macros that call
xfs_bunmapi() and xfs_swap_extents() via the ioops vector.
Change all calls that may modify the in-core extent map for the
data fork to go through the ioops vector.  This allows a cache
of extent map data to be kept in sync.
Add initialization of .xfs_bunmapi_func and .xfs_swap_extents_func of
xfs_iocore_xfs.

Revision 1.48 / (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.47: +12 -26 lines
Diff to previous 1.47 (unified)

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

Revision 1.47 / (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.46: +10 -11 lines
Diff to previous 1.46 (unified)

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

Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 18 22:04:32 2003 UTC (13 years, 10 months ago) by cattelan
Branch: MAIN
Changes since 1.45: +1 -0 lines
Diff to previous 1.45 (unified)

move the iomap data structures out of pagebuf
Use the new iomap flags and data structures

Revision 1.45 / (download) - annotate - [select for diffs], Mon Sep 8 03:47:34 2003 UTC (14 years, 1 month ago) by sandeen
Branch: MAIN
Changes since 1.44: +0 -1 lines
Diff to previous 1.44 (unified)

remove doubly-included header files

Revision 1.44 / (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.43: +133 -0 lines
Diff to previous 1.43 (unified)

The Big Move
linux/fs/xfs/xfs_iocore.c 1.42 Renamed to xfs_iocore.c

Revision 1.43 / (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.42: +0 -133 lines
Diff to previous 1.42 (unified)

Nuke

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jun 16 14:22:52 2003 UTC (14 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.41: +1 -2 lines
Diff to previous 1.41 (unified)

Remove a dead code path from mount, noticed by Al Viro.
drop dev arg from xfs_mountfs

Revision 1.41 / (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.40: +32 -1 lines
Diff to previous 1.40 (unified)

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.40 / (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.39: +1 -1 lines
Diff to previous 1.39 (unified)

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

Revision 1.39 / (download) - annotate - [select for diffs], Tue Mar 18 00:39:31 2003 UTC (14 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.38: +2 -4 lines
Diff to previous 1.38 (unified)

Cleanup/remove a bunch of macros, comments and code.
Remove several unused macros.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 12 03:33:01 2003 UTC (14 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.37: +14 -4 lines
Diff to previous 1.37 (unified)

Next step in bhv code cleanup - this is a start on moving quota and dmapi
into behavior layers, purging several points where these sit slap bang in
the middle of XFS code (esp. read_super).  Also removes numerous #ifdef's
and a bunch of unused #define's from all over the place.  More to come.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 11 17:27:32 2002 UTC (14 years, 10 months ago) by lord
Branch: MAIN
Changes since 1.36: +11 -2 lines
Diff to previous 1.36 (unified)

rework iocore infrastructure, remove some code and make it more
orthogonal. In addition, add some of the hooks for unwritten extents.
Merge of 2.4.x-xfs-dev:slinx:134603a by lord.

  revamped iocore functions 

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 5 22:00:24 2002 UTC (15 years, 2 months ago) by lord
Branch: MAIN
Changes since 1.35: +0 -6 lines
Diff to previous 1.35 (unified)

remove dead function

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 18 17:35:16 2002 UTC (15 years, 2 months ago) by sandeen
Branch: MAIN
Changes since 1.34: +8 -8 lines
Diff to previous 1.34 (unified)

update Designated initializer format

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jul 16 21:20:59 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.33: +0 -34 lines
Diff to previous 1.33 (unified)

remove some unaccessed parts of the xfs iocore

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jul 15 11:09:18 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.32: +0 -29 lines
Diff to previous 1.32 (unified)

remove xfs_rsync_fn, not used

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 12 21:03:14 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.31: +0 -4 lines
Diff to previous 1.31 (unified)

remove xfs_checklock call

Revision 1.31 / (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.30: +11 -11 lines
Diff to previous 1.30 (unified)

whitespace cleanup

Revision 1.30 / (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.29: +1 -1 lines
Diff to previous 1.29 (unified)

Update copyright dates

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 16 16:00:48 2002 UTC (15 years, 5 months ago) by lord
Branch: MAIN
Changes since 1.28: +4 -1 lines
Diff to previous 1.28 (unified)

Some inode size manipulation changes

Revision 1.28 / (download) - annotate - [select for diffs], Tue Mar 26 16:19:25 2002 UTC (15 years, 6 months ago) by lord
Branch: MAIN
Changes since 1.27: +2 -0 lines
Diff to previous 1.27 (unified)

make io_lock and io_iolock debug only

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 6 19:58:25 2002 UTC (15 years, 7 months ago) by lord
Branch: MAIN
Changes since 1.26: +0 -10 lines
Diff to previous 1.26 (unified)

remove xfs_iocore_reset - it was dead code

Revision 1.26 / (download) - annotate - [select for diffs], Tue Feb 26 00:33:20 2002 UTC (15 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.25: +2 -13 lines
Diff to previous 1.25 (unified)

Merge of 2.4.18-xfs:slinx:112528b by nathans.

  remove several no-longer-used fields (iosize) from the xfs_iocore_t.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 16 22:49:09 2001 UTC (16 years, 6 months ago) by lord
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.24: +0 -2 lines
Diff to previous 1.24 (unified)

remove references to deleted inode fields

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 9 21:47:52 2001 UTC (16 years, 6 months ago) by sandeen
Branch: MAIN
Changes since 1.23: +20 -16 lines
Diff to previous 1.23 (unified)

Add member labels to ops vector initializations for clarity.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 5 03:17:43 2001 UTC (16 years, 9 months ago) by dxm
Branch: MAIN
CVS Tags: Release-1_0_0, PreRelease-0_10
Changes since 1.22: +3 -0 lines
Diff to previous 1.22 (unified)

add vop_checklock to match irix

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 12 00:27:26 2000 UTC (16 years, 10 months ago) by ivanr
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (unified)

undo mod 80332a: we will solve the problem a different way
Undoes mod:     2.4.x-xfs:slinx:80332a

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 10 23:21:19 2000 UTC (16 years, 10 months ago) by dxm
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (unified)

rename fs_* to xfs_fs_* 

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 25 05:42:07 2000 UTC (17 years ago) by nathans
Branch: MAIN
Changes since 1.19: +3 -69 lines
Diff to previous 1.19 (unified)

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

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 17 20:57:01 2000 UTC (17 years, 2 months ago) by roehrich
Branch: MAIN
Changes since 1.18: +3 -4 lines
Diff to previous 1.18 (unified)

use dmapi_kern.h instead of dmi_kern.h
use dmapi_kern.h instead of dmi_kern.h

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jun 15 03:01:24 2000 UTC (17 years, 4 months ago) by nathans
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (unified)

ongoing code cleanup, remove unused headers, dead code.

Revision 1.17 / (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.16: +2 -7 lines
Diff to previous 1.16 (unified)

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

Merge of 2.3.99pre2-xfs:slinx:63636a originally by nathans on 06/07/00
  more housekeeping - remove unused headers & dead code.

Merge of 2.3.99pre2-xfs:slinx:63664a originally by nathans on 06/08/00
  more housekeeping - remove unused headers & dead code.

Revision 1.16 / (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.15: +25 -12 lines
Diff to previous 1.15 (unified)

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

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 9 02:42:56 2000 UTC (17 years, 4 months ago) by jtk
Branch: MAIN
CVS Tags: DELETE
Changes since 1.14: +0 -90 lines
Diff to previous 1.14 (unified)

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

  Remove include of fcntl.h
  Remove include of flock.h
  Remove unusd xfs_frlock2 routine
  Remove unused xfs_checklock routine

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 9 02:29:42 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.13: +0 -1 lines
Diff to previous 1.13 (unified)

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

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

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

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.12 / (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.11: +1 -10 lines
Diff to previous 1.11 (unified)

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.11 / (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.10: +2 -1 lines
Diff to previous 1.10 (unified)

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.10 / (download) - annotate - [select for diffs], Thu Jun 8 23:59:59 2000 UTC (17 years, 4 months ago) by lord
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (unified)

Bring XFS upto 2.3.42
Merge of 2.3.99pre2-xfs:slinx:43458a by ananth.

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

Revision 1.9 / (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.8: +19 -1 lines
Diff to previous 1.8 (unified)

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.8 / (download) - annotate - [select for diffs], Mon Jan 24 21:38:02 2000 UTC (17 years, 8 months ago) by lord
Branch: MAIN
Changes since 1.7: +18 -8 lines
Diff to previous 1.7 (unified)

Merge from irix/irix6.5f to pingu/slinx-xfs
Merge of irix6.5f:irix:31229a created by clk on 10/29/99
  Add new args to flock calls.

Merge of irix6.5f:irix:34672a created by doucette on 12/03/99
  Split xfs_iocore_inode_reinit out from xfs_iocore_inode_init so it
  can be called from xfs_iget in a different path.
  Fix a compiler warning.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 25 06:29:10 1999 UTC (17 years, 10 months ago) by cattelan
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (unified)

Last of the b_flags abstraction.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 23 20:09:20 1999 UTC (17 years, 10 months ago) by cattelan
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (unified)

More b_flags abstractions

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

replace struct buf and buf_t references with xfs_buf and xfs_buf_t

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 15 23:07:16 1999 UTC (17 years, 11 months ago) by lord
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (unified)

Merge from irix/irix6.5f to pingu/slinx-xfs
Merge of irix6.5f:irix:31229a created by clk on 10/29/99
  Add new args to flock calls.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 18 17:43:46 1999 UTC (18 years, 1 month ago) by cattelan
Branch: MAIN
Changes since 1.2: +9 -2 lines
Diff to previous 1.2 (unified)

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

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 25 20:01:08 1999 UTC (18 years, 4 months ago) by clk
Branch: MAIN
Changes since 1.1: +84 -2 lines
Diff to previous 1.1 (unified)

Add new iocore op xfs_checklock and supporting routine
xfs_frlock2 (was VOP_FRLOCK2).

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 14 20:13:13 1999 UTC (18 years, 5 months ago) by lord
Branch: MAIN

Merge from irix/cxfs-f to irix/irix6.5f
Merge of cxfs-f:irix:15011b created by lord on 05/11/99
  Merge from irix/cxfs to irix/cxfs-f
  Merge of cxfs:irix:13423a created by lord on 04/19/99
  CXFS infrastructure checkin

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




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