CVS log for xfs-linux/dmapi/xfs_dm.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.81 / (download) - annotate - [select for diffs], Tue Oct 28 05:39:09 2008 UTC (8 years, 11 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

kill sys_cred

capable_cred has been unused for a while so we can kill it and sys_cred.
That also means the cred argument to xfs_setattr and
xfs_change_file_space can be removed now.

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

  kill sys_cred

Revision 1.80 / (download) - annotate - [select for diffs], Wed Oct 22 03:11:34 2008 UTC (9 years ago) by donaldd.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.79: +0 -1 lines
Diff to previous 1.79 (colored)

kill struct xfs_mount_args

No need to parse the mount option into a structure before applying it
to struct xfs_mount.

The content of xfs_start_flags gets merged into xfs_parseargs.  Calls
inbetween don't care and can use mount members instead of the args
struct.

This patch uncovered that the mount option for shared filesystems wasn't
ever exposed on Linux.  The code to handle it is #if 0'ed in this patch
pending a decision on this feature.  I'll send a writeup about it to
the list soon.


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

  kill struct xfs_mount_args 

Revision 1.79 / (download) - annotate - [select for diffs], Wed Oct 15 03:28:27 2008 UTC (9 years ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.78: +11 -11 lines
Diff to previous 1.78 (colored)

Fix build error - use VFS_I() to access linux inode from xfs inode
Merge of xfs-linux-melb:xfs-kern:32326a by kenmcd.

  Fix build error - use VFS_I() to access linux inode from xfs inode

Revision 1.78 / (download) - annotate - [select for diffs], Fri Jul 25 06:13:14 2008 UTC (9 years, 3 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.77: +2 -0 lines
Diff to previous 1.77 (colored)

Undoes mod:     xfs-linux-melb:xfs-kern:31766a
Revert remove mounpoint UUID code

As spotted by dchinner and hch, this touches on-disk format and log format, should be more carefully reviewed.
Merge of xfs-linux-melb:xfs-kern:31773a by kenmcd.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Jul 25 04:21:53 2008 UTC (9 years, 3 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.76: +0 -2 lines
Diff to previous 1.76 (colored)

remove mounpoint UUID code

It looks like all of the below is unused... and according
to Nathan,

"dont think it even got used/implemented anywhere, but i think it
was meant to be an auto-mount kinda thing... such that when you look
up at that point, it knows to mount the device with that uuid there,
if its not already it was never really written anywhere ... just an
idea in doug doucettes brain i think."

Think it'll ever go anywhere, or should it get pruned?

The below builds; not at all tested, until I get an idea if it's worth
doing.  Need to double check that some structures might not need padding
out to keep things compatible/consistent...
Merge of xfs-linux-melb:xfs-kern:31766a by kenmcd.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Jul 23 16:34:13 2008 UTC (9 years, 3 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

Kill shouty XFS_ITOV() macro

Replace XFS_ITOV() with the new VFS_I() inline.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Merge of xfs-linux-melb:xfs-kern:31724a by kenmcd.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 18 16:35:20 2008 UTC (9 years, 3 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.74: +1 -5 lines
Diff to previous 1.74 (colored)

Remove vn_revalidate calls in xfs.

These days most of the attributes in struct inode are properly kept in
sync by XFS.  This patch removes the need for vn_revalidate completely
by:
 - keeping inode.i_flags uptodate after any flags are updated in
   xfs_ioctl_setattr
 - keeping i_mode, i_uid and i_gid uptodate in xfs_setattr

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

  remove vn_revalidate calls in xfs.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Jul 18 16:34:26 2008 UTC (9 years, 3 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.73: +29 -28 lines
Diff to previous 1.73 (colored)

Now that xfs_setattr is only used for attributes set from ->setattr it
can be switched to take struct iattr directly and thus simplify the
implementation greatly.  Also rename the ATTR_ flags to XFS_ATTR_ to
not conflict with the ATTR_ flags used by the VFS.


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

  Now that xfs_setattr is only used for attributes set from ->setattr it
  can be switched to take struct iattr directly and thus simplify the
  implementation greatly.  Also rename the ATTR_ flags to XFS_ATTR_ to
  not conflict with the ATTR_ flags used by the VFS.
  Signed-off-by: Christoph Hellwig <hch@lst.de>

Revision 1.73 / (download) - annotate - [select for diffs], Fri May 16 06:24:52 2008 UTC (9 years, 5 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.72: +3 -1 lines
Diff to previous 1.72 (colored)

xfs_dm_rdwr() needs to pass a vfsmount to dentry_open()

We need a vfsmount pointer in xfs_dm_rdwr() but we are not
provided with one and there's no way to get to it.  So add
a m_vfsmount field to the xfs_mount structure and set it
up at mount time.  We can then access it through the xfs
inode.
Merge of xfs-linux-melb:xfs-kern:31176a by kenmcd.

  xfs_dm_rdwr() needs to pass a vfsmount to dentry_open()

Revision 1.72 / (download) - annotate - [select for diffs], Fri May 9 04:28:58 2008 UTC (9 years, 5 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.71: +10 -10 lines
Diff to previous 1.71 (colored)

Remove unused kmem_free() args from XFS DMAPI code.
Merge of xfs-linux-melb:xfs-kern:31054a by kenmcd.

  remove unused kmem_free() arg.

Revision 1.71 / (download) - annotate - [select for diffs], Thu May 8 04:06:54 2008 UTC (9 years, 5 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.70: +2 -6 lines
Diff to previous 1.70 (colored)

Fix fsync() b0rkage.

xfs_fsync() fails to wait for data I/O completion before checking if
the inode is dirty or clean to decide whether to log the inode or not.
This misses inode size updates when the data flushed by the fsync()
is extending the file.

Hence, like fdatasync(), we need to wait for I/o completion first,
then check the inode for cleanliness. Doing so makes the behaviour of
xfs_fsync() identical for fsync and fdatasync and we *always* use
synchronous semantics if the inode is dirty. Therefore also kill the
differences and remove the unused flags from the xfs_fsync function
and callers.
Merge of xfs-linux-melb:xfs-kern:31033a by kenmcd.

  clean up xfs_fsync() usage.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Apr 21 16:00:46 2008 UTC (9 years, 6 months ago) by bnaujok.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.69: +6 -7 lines
Diff to previous 1.69 (colored)

Cleanup xfs_attr a bit with xfs_name and remove cred
Merge of xfs-linux-melb:xfs-kern:30913a by kenmcd.

  Remove cred paramater to xfs_attr_get

Revision 1.69 / (download) - annotate - [select for diffs], Mon Apr 21 06:14:44 2008 UTC (9 years, 6 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.68: +0 -8 lines
Diff to previous 1.68 (colored)

kill di_mode checks after xfs_iget

Unless XFS_IGET_CREATE is passed xfs_iget will return ENOENT if it
encounters an inode with di_mode == 0.  Remove the duplicated checks
in the callers.

(the log recovery case is not touched for now)


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

  kill di_mode checks after xfs_iget

Revision 1.68 / (download) - annotate - [select for diffs], Wed Apr 9 16:35:28 2008 UTC (9 years, 6 months ago) by bnaujok.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

remove bhv_vname_t and xfs_rename code
Merge of xfs-linux-melb:xfs-kern:30804a by kenmcd.

  remove bhv_vname_t and xfs_rename code

Revision 1.67 / (download) - annotate - [select for diffs], Wed Mar 12 05:19:36 2008 UTC (9 years, 7 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.66: +1 -4 lines
Diff to previous 1.66 (colored)

remove more checks from the DMAPI punch/probe hole interface as requested by DMF group.

DMF today assumes that once it figures out the punchable boundary unit
for a file (filesystem block size) that it can successfully punch any
other file using that same unit in the same filesystem.  That's not
true because the dm_punch_hole() code still has a check left in it
that uses a different punch boundary unit if the file contains a hint.
There's no way we can rework DMF to remove that assumption in time for
release, and I don't think we want to.  If the XFS code:

align = xfs_get_extsz_hint(ip);
if (align == 0)
       align = 1;
align <<= mp->m_sb.sb_blocklog;

was changed to:

align = 1 << mp->m_sb.sb_blocklog;
Merge of xfs-linux-melb:xfs-kern:30650a by kenmcd.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Feb 27 03:17:08 2008 UTC (9 years, 8 months ago) by xaiki.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.65: +9 -12 lines
Diff to previous 1.65 (colored)

Revert page-alignment checks introduced in xfs-linux-melb:xfs-kern:29084a
Merge of xfs-linux-melb:xfs-kern:30585a by kenmcd.

  Revert page-alignment checks introduced in xfs-linux-melb:xfs-kern:29084a

Revision 1.65 / (download) - annotate - [select for diffs], Tue Feb 26 03:19:24 2008 UTC (9 years, 8 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.64: +13 -30 lines
Diff to previous 1.64 (colored)

cleanup vnode use in dmapi calls

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

  cleanup vnode use in dmapi calls

Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 22 03:09:12 2008 UTC (9 years, 8 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.63: +9 -14 lines
Diff to previous 1.63 (colored)

kill xfs_rwlock/xfs_rwunlock

We can just use xfs_ilock/xfs_iunlock instead and get rid of the ugly
bhv_vrwlock_t.


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

  kill xfs_rwlock/xfs_rwunlock

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jan 21 14:59:58 2008 UTC (9 years, 9 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.62: +0 -5 lines
Diff to previous 1.62 (colored)

stop updating inode->i_blocks

The VFS doesn't use i_blocks, it's only used by generic_fillattr and
the generic quota code which XFS doesn't use.  In XFS there is one use
to check whether we have an inline or out of line sumlink, but we can
replace that with a check of the XFS_IFINLINE inode flag.


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

  stop updating inode->i_blocks

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 17 02:54:44 2007 UTC (9 years, 10 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.61: +50 -27 lines
Diff to previous 1.61 (colored)

Cleanup various fid related bits:

 - merge xfs_fid2 into it's only caller xfs_dm_inode_to_fh.
 - remove xfs_vget and opencode it in the two callers, simplifying
   both of them by avoiding the awkward calling convetion.
 - assign directly to the dm_fid_t members in various places in the
   dmapi code instead of casting them to xfs_fid_t first (which
   is identical to dm_fid_t)


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

  pv 974747, author Christoph Hellwig <hch@lst.de>, rv vapo - Cleanup various fid related bits

Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 13 05:18:26 2007 UTC (9 years, 10 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.60: +0 -4 lines
Diff to previous 1.60 (colored)

Put the correct offset in dirent d_off

The recent filldir regression fix was not putting the correct
d_off in each dirent. This was resulting in incorrect cookies being
passed to dmapi ioctls and the wrong offset appearing in the dirents.
readdir was unaffected as the filp->f_pos was being updated with the
correct offset and this was being written into the last dirent in
each buffer. Fix the XFS code to do the right thing.
Merge of xfs-linux-melb:xfs-kern:30240a by kenmcd.

  Remove special handling of dirent offsets for the cookie betwen
  ioctl calls.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Nov 30 05:10:36 2007 UTC (9 years, 10 months ago) by tes.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.59: +2 -3 lines
Diff to previous 1.59 (colored)

Remove CFORK macros and use code directly in IFORK and DFORK macros.

Currently XFS_IFORK_* and XFS_DFORK* are implemented by means of
XFS_CFORK* macros.  But given that XFS_IFORK_* operates on an
xfs_inode that embedds and xfs_icdinode_core and XFS_DFORK_* operates
on an xfs_dinode that embedds a xfs_dinode_core one will have to do
endian swapping while the other doesn't.  Instead of having the current
mess with the CFORK macros that have byteswapping and non-byteswapping
version (which are inconsistantly named while we're at it) just define
each family of the macros to stand by itself and simplify the whole
matter.

A few direct references to the CFORK variants were cleaned up to
use IFORK or DFORK to make this possible.

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

  Remove CFORK macros and use code directly in IFORK and DFORK macros.

Revision 1.59 / (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.58: +1 -1 lines
Diff to previous 1.58 (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.58 / (download) - annotate - [select for diffs], Fri Sep 28 04:12:02 2007 UTC (10 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.57: +80 -3 lines
Diff to previous 1.57 (colored)

kill xfs_dm_fsops.c

No point having a separate file for these few methods, especially if
we want to merge the crufty ops vector into the dmapiops one day.

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

  pv 971182, author hch@lst.de, rv vapo - kill xfs_dm_fsops.c

Revision 1.57 / (download) - annotate - [select for diffs], Wed Sep 26 04:06:38 2007 UTC (10 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.56: +3 -75 lines
Diff to previous 1.56 (colored)

Kill 2.4 compat ifdefs in dmapi.

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

  pv 971046, author hch@lst.de, rv vapo - Kill 2.4 compat ifdefs in dmapi.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Sep 25 06:11:50 2007 UTC (10 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.55: +55 -72 lines
Diff to previous 1.55 (colored)

cleanup vnode useage in xfs_dm.c

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

  pv 970979, author hch@lst.de, rv vapo - cleanup vnode useage in xfs_dm.c

Revision 1.55 / (download) - annotate - [select for diffs], Fri Sep 21 16:10:12 2007 UTC (10 years, 1 month ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.54: +5 -7 lines
Diff to previous 1.54 (colored)

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 14 06:08:44 2007 UTC (10 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.53: +4 -0 lines
Diff to previous 1.53 (colored)

pv 970514, author hch@lst.de, rv vapo - xfs_dmapi: add MODULE_ tags
Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of xfs-linux-melb:xfs-kern:29687a by kenmcd.

  pv 970514, author hch@lst.de, rv vapo - xfs_dmapi: add MODULE_ tags

Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 11 06:12:43 2007 UTC (10 years, 1 month ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

cleanup fid types mess

Currently XFs has three different fid types: struct fid, struct xfs_fid
and struct xfs_fid2 with hte latter two beeing identicaly and the first
one beeing the same size but an unstructured array with the same size.

This patch consolidates all this to alway uuse struct xfs_fid.

This patch is required for an upcoming patch series from me that revamps
the nfs exporting code and introduces a Linux-wide struct fid.


Note: the patch is ontop of Eric's inode/vnode tracing cleanup.

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

  cleanup fid types mess

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

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.51 / (download) - annotate - [select for diffs], Fri Aug 24 16:16:26 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.50: +1 -1 lines
Diff to previous 1.50 (colored)

kill the vfs_flags member in struct bhv_vfs

All flags are added to xfs_mount's m_flag instead.  Note that the 32bit
inode flag was duplicated in both of them, but only cleared in the
mount when it was not nessecary due to the filesystem beeing small enough.
Two flags are still required here - one to indicate the mount option
setting, and one to indicate if it applies or not.

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

  move vfs_flags to xfs_mount.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Aug 24 16:15:28 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

kill the vfs_fsid and vfs_altfsid members in struct bhv_vfs

vfs_altfsid was just a pointer to mp->m_fixedfsid so we can trivially
replace it with the latter.  vfs_fsid also was identicaly to m_fixedfsid
through rather obsfucated ways so we can kill it aswell and simply it's
only user.


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

  remove vfs_fsid and vfs_altfsid.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 24 16:12:03 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.48: +34 -1 lines
Diff to previous 1.48 (colored)

remove dependency of the dmapi module on behaviors

Mount options are now parsed by the main XFS module and rejected if dmapi
support is not available, and there is a new dm operation to send the
mount event.


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

  remove dependency of the dmapi module on behaviors

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

kill struct bhv_vnode

Now that struct bhv_vnode is empty we can just kill it.  Retain bhv_vnode_t
as a typedef for struct inode for the time beeing until all the fallout is
cleaned up.


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

  struct bhv_vnode is empty so just retain it as a typedef to a
  struct inode to minimise cosmetic change.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Aug 24 16:06:08 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.46: +4 -6 lines
Diff to previous 1.46 (colored)

kill the v_flag member in struct bhv_vnode

All flags previous handled at the vnode level are not in the xfs_inode
where we already have a flags mechanisms and free bits for flags
previously in the vnode.


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

  move vnode flags to xfs inode.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 24 16:05:15 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.45: +10 -12 lines
Diff to previous 1.45 (colored)

kill v_vfsp member from struct bhv_vnode

We can easily get at the vfsp through the super_block but it will soon
be gone anyway.


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

  remove v_vfsp from bhv_vnode.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 24 16:04:16 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.44: +16 -21 lines
Diff to previous 1.44 (colored)

call common xfs vnode-level helpers directly and remove vnode operations

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

  remove vnode operations.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Aug 24 16:03:11 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.43: +4 -13 lines
Diff to previous 1.43 (colored)

decontaminate vnode operations from behavior details

All vnode ops now take struct xfs_inode pointers and the behaviour
related glue is split out into methods of it's own.  This required
fixing xfs_create/mkdir/symlink to not mess with the inode pointer
but rather use a separate boolean for error handling.  Thanks to
Dave Chinner for that fix.


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

  convert vnode ops to take xfs_inode pointers and separate out
  behaviour related glue.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Aug 23 15:57:59 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.42: +138 -285 lines
Diff to previous 1.42 (colored)

use filldir internally

Currently xfs has a rather complicated internal scheme to allow for
different directory formats in IRIX.  This patch rips all code related
to this out and pushes useage of the Linux filldir callback into the
lowlevel directory code.  This does not make the code any less portable
because filldir can be used to create dirents of all possible variations
(including the IRIX ones as proved by the IRIX binary emulation code
under arch/mips/).

This patch get rid of an unessecary copy in the readdir path, about
400 lines of code and one of the last two users of the uio structure.

This version is updated to deal with dmapi aswell which greatly
simplifies the get_dirattrs code.  The dmapi part has been tested
using the get_dirattrs tools from the xfstest dmapi suite1 with various
small and large directories.


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

  Use the generic filldir directory formatter callbacks rather than
  the complex xfs_uio_move based implementation. Removes a copy
  and simplifies the code greatly.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 23 15:56:14 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.41: +34 -35 lines
Diff to previous 1.41 (colored)

dinode endianess annotations

Biggest bit is duplicating the dinode structure so we have one annoted
for native endianess and one for disk endianess.  The other significant
change is that xfs_xlate_dinode_core is split into one helper per
direction to allow for proper annotations, everything else is trivial.

As a sidenode splitting out the incore dinode means we can move it into
xfs_inode.h in a later patch and severly improving on the include hell
in xfs.

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

  add endian notations for the dinode.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Aug 6 15:41:08 2007 UTC (10 years, 2 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.40: +2 -3 lines
Diff to previous 1.40 (colored)

pv 968690, author Christoph Hellwig <hch@lst.de>, rv vapo - remove unessecary vfs argument to DM_EVENT_ENABLED
Merge of xfs-linux-melb:xfs-kern:29340a by kenmcd.

  pv 968690, author Christoph Hellwig <hch@lst.de>, rv vapo - remove unessecary vfs argument to DM_EVENT_ENABLED

Revision 1.40 / (download) - annotate - [select for diffs], Thu Aug 2 16:01:27 2007 UTC (10 years, 2 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

fix dmapi warning in 32bit builds

dm_size_t is 64bit even in 32bit builds so we need to use max_t when
when comparing to PAGE_CACHE_SIZE.


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

  fix 32bit build warning in xfs_dm_probe_hole.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jul 18 06:15:15 2007 UTC (10 years, 3 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.38: +11 -6 lines
Diff to previous 1.38 (colored)

pv 967622, rv dgc - Return negative DMAPI errors.
Merge of xfs-linux-melb:xfs-kern:29169a by kenmcd.

  pv 967622, rv dgc - Return negative DMAPI errors.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jul 6 04:02:21 2007 UTC (10 years, 3 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.37: +121 -48 lines
Diff to previous 1.37 (colored)

pv 960527, rv dgc - Implement variable size DMAPI probe/punch hole. We don't
strictly follow the DMAPI spec, see the comments in the code for more details.
Merge of xfs-linux-melb:xfs-kern:29084a by kenmcd.

  pv 960527, rv dgc - Implement variable size DMAPI probe/punch hole. We don't
  strictly follow the DMAPI spec, see the comments in the code for more details.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jun 8 16:06:22 2007 UTC (10 years, 4 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.36: +1 -1 lines
Diff to previous 1.36 (colored)

Fix i386 dmapi build - use roundup_64 for 64 bit types.
Merge of xfs-linux-melb:xfs-kern:28870a by kenmcd.

  Use roundup_64() instead of roundup() which cannot handle 64
  bit types on 32bit platforms.

Revision 1.36 / (download) - annotate - [select for diffs], Tue May 22 03:59:49 2007 UTC (10 years, 5 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.35: +29 -16 lines
Diff to previous 1.35 (colored)

Make hole punching at EOF atomic.

If hole punching at EOF is done as two steps (i.e. truncate then extend)
the file is in a transient state between the two steps where an
application can see the incorrect file size. Punching a hole to
EOF needs to be treated in teh same way as all other hole punching
cases so that the file size is never seen to change.
Merge of xfs-linux-melb:xfs-kern:28641a by kenmcd.

  Use UNRESVSP to punch a hole at EOF rather than FREESP + xfs_setattr
  to return truncate and extend the file. THis means we also need to
  truncate away blocks past EOF using xfs_free_eofblocks().

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 30 15:43:19 2007 UTC (10 years, 6 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.34: +16 -2 lines
Diff to previous 1.34 (colored)

xfs_dm_sync_by_handle does not sync file data.

xfs_dm_sync_by_handle() is supposed to behave like fsync.
When it returns the handle against which it was called is supposed
to be completely on stable storage. xfs_dm_sync_by_handle
syncs the inode but not the data. Make it sync hte data as well.
Merge of xfs-linux-melb:xfs-kern:28329a by kenmcd.

  sync data as well as the inode in xfs_dm_sync_by_handle().

Revision 1.34 / (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.33: +6 -6 lines
Diff to previous 1.33 (colored)

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.33 / (download) - annotate - [select for diffs], Fri Mar 2 02:59:33 2007 UTC (10 years, 7 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

The last argument "lsn" of xfs_trans_commit() is always called with NULL.

Patch provided by Eric Sandeen.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of xfs-linux-melb:xfs-kern:28199a by kenmcd.

  The last argument "lsn" of xfs_trans_commit() is always called with NULL.
  Signed-off-by: Eric Sandeen <sandeen@sandeen.net>

Revision 1.32 / (download) - annotate - [select for diffs], Fri Feb 2 14:38:36 2007 UTC (10 years, 8 months ago) by dgc.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

DMAPI bulkstat block count units incorrect.

Return dt_blocks in units of 512 byte blocks instead of
filesystem blocks.
Merge of xfs-linux-melb:xfs-kern:28011a by kenmcd.

  Return dt_blocks in units of 512 byte blocks instead of
  filesystem blocks.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 12 02:58:07 2006 UTC (10 years, 10 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30 (colored)

use struct kvec in struct uio
Merge of xfs-linux-melb:xfs-kern:27701a by kenmcd.

  use struct kvec in struct uio

Revision 1.30 / (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.29: +3 -3 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Mon Nov 27 02:51:03 2006 UTC (10 years, 11 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.28: +1 -0 lines
Diff to previous 1.28 (colored)

DMF doesn't work with mangrove 1.0 because of uninitialized dt_dev in xfs_ip_to_stat()
Merge of xfs-linux-melb:xfs-kern:27551a by kenmcd.

  pv 958534, rv chatz - add forgotten initialization of dt_dev in xfs_ip_to_stat()

Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 21 14:45:27 2006 UTC (10 years, 11 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

No EFAULT error when dm_getall_dmattr() called with an invalid user buffer address.
Merge of xfs-linux-melb:xfs-kern:27510a by kenmcd.

  pv 956783, rv donaldd - Check user buffer address in dm_getall_dmattr() for EFAULT error

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 31 02:58:46 2006 UTC (10 years, 11 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored)

956664: dm_read_invis() changes i_atime
Merge of xfs-linux-melb:xfs-kern:27315a by kenmcd.

  pv 956664 - rv sjv, dgc, lachlan: invisible operations should not change atime

Revision 1.26 / (download) - annotate - [select for diffs], Mon Oct 16 03:52:22 2006 UTC (11 years ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

956618: Linux crashes on boot with XFS-DMAPI filesystem when CONFIG_XFS_TRACE is on
Merge of xfs-linux-melb:xfs-kern:27196a by kenmcd.

  KM_LARGE annotations are required on some calls in the dmapi code which 
  request big buffers if the user directs them to do so.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Sep 27 15:48:29 2006 UTC (11 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24 (colored)

pv 956041, rv sjv: Do endian conversion of the on-disk generation number
Merge of xfs-linux-melb:xfs-kern:27062a by kenmcd.

  pv 956041, rv sjv: Do endian conversion of the on-disk generation number

Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 15 12:34:11 2006 UTC (11 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.23: +2 -26 lines
Diff to previous 1.23 (colored)

pv 956242, author: nathans, rv: vapo - remove redundant code
Merge of xfs-linux-melb:xfs-kern:26985a by kenmcd.

  pv 956242, author: nathans, rv: vapo - remove redundant code

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 15 12:33:25 2006 UTC (11 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

pv 956241, author: nathans, rv: vapo - make ino validation checks consistent in bulkstat
Merge of xfs-linux-melb:xfs-kern:26984a by kenmcd.

  pv 956241, author: nathans, rv: vapo - make ino validation checks consistent in bulkstat

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 31 06:13:58 2006 UTC (11 years, 1 month ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

pv 955006, rv bnaujok - Better (and proper) way to fix the problem.
strnlen_user returns strlen+1 not strlen as documented in the ia64 code.
Merge of xfs-linux-melb:xfs-kern:26892a by kenmcd.

  pv 955006, rv bnaujok - Better (and proper) way to fix the problem.
  strnlen_user returns strlen+1 not strlen as documented in the ia64 code.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 25 15:37:52 2006 UTC (11 years, 2 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.20: +1 -0 lines
Diff to previous 1.20 (colored)

pv 955271, rv bnaujok - update inode->i_atime.tv_sec
Merge of xfs-linux-melb:xfs-kern:26865a by kenmcd.

  pv 955271, rv bnaujok - update inode->i_atime.tv_sec

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 25 15:37:08 2006 UTC (11 years, 2 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.19: +8 -4 lines
Diff to previous 1.19 (colored)

955006: DMAPI set/get/remove attribute returns EINVAL instead of EFAULT:bad &dm_attrname
Merge of xfs-linux-melb:xfs-kern:26864a by kenmcd.

  pv 955006, rv bnaujok - check access_ok() for user dm_attrname_t buffer

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 25 03:50:37 2006 UTC (11 years, 2 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.18: +60 -23 lines
Diff to previous 1.18 (colored)

pv 955473, rv lachlan, nathans, gdc, tes - dynamicly scale direntbufsz based on the user buflen
Merge of xfs-linux-melb:xfs-kern:26859a by kenmcd.

  pv 955473, rv lachlan, nathans, gdc, tes - dynamicly scale direntbufsz based on the user buflen

Revision 1.18 / (download) - annotate - [select for diffs], Fri Aug 4 13:32:06 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

Remove last bulkstat false-positives with debug kernels.
Merge of xfs-linux-melb:xfs-kern:26628a by kenmcd.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Aug 4 13:26:42 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.16: +553 -336 lines
Diff to previous 1.16 (colored)

Rework DMAPI bulkstat calls in such a way that we can directly extract inline attributes out of the bulkstat buffer (for that case), rather than using an (extremely expensive for large icount filesystems) iget for fetching attrs.
Merge of xfs-linux-melb:xfs-kern:26602a by kenmcd.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 4 13:25:55 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.15: +1 -0 lines
Diff to previous 1.15 (colored)

Ensure we specify the type of bulkstat call we will issue (uninited variable).
Merge of xfs-linux-melb:xfs-kern:26601a by kenmcd.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 4 13:22:53 2006 UTC (11 years, 2 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.14: +8 -6 lines
Diff to previous 1.14 (colored)

remove bhv_lookup, _range version works aswell and has more useful semantics.

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

  remove bhv_lookup, _range version works aswell and has more useful semantics.

Revision 1.14 / (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.13: +1 -3 lines
Diff to previous 1.13 (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.13 / (download) - annotate - [select for diffs], Thu Jun 8 03:54:20 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

Remove a no-longer-used variable.
Merge of xfs-linux-melb:xfs-kern:26200a by kenmcd.

Revision 1.12 / (download) - annotate - [select for diffs], Tue May 30 15:57:54 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Resolve a namespace collision on remaining vtypes for FreeBSD porters.
Merge of xfs-linux-melb:xfs-kern:26108a by kenmcd.

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 30 15:56:57 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.10: +65 -69 lines
Diff to previous 1.10 (colored)

Resolve a namespace collision on vnode/vnodeops for FreeBSD porters.
Merge of xfs-linux-melb:xfs-kern:26107a by kenmcd.

Revision 1.10 / (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.9: +5 -5 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Tue May 30 15:51:09 2006 UTC (11 years, 4 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Start writeout earlier (on last close) in the case where we have a truncate down followed by delayed allocation (buffered writes) - worst case scenario for the notorious NULL files problem.  This reduces the window where we are exposed to that problem significantly.
Merge of xfs-linux-melb:xfs-kern:26100a by kenmcd.

Revision 1.8 / (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.7: +1 -1 lines
Diff to previous 1.7 (colored)

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.
Provide extra parameter for xfs_bmapi().

Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 5 21:01:50 2006 UTC (11 years, 6 months ago) by bobo
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

A better event mask check.
The idea for this event mask check is simply to verify
that the set region call isn't modifying event bits
that it shouldn't.  The only bits that could change are
those for READ, WRITE, and TRUNC.  The only one allowed
to change is the READ bit.  The original check didn't
take into consideration that there may be events
besides those three already registerd on this object.
PV 950585

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 17 14:28:04 2006 UTC (11 years, 7 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.5: +36 -36 lines
Diff to previous 1.5 (colored)

Complete transition away from linvfs naming convention, finally.
Merge of xfs-linux-melb:xfs-kern:25474a by kenmcd.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 6 14:20:06 2006 UTC (11 years, 7 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored)

Switch over from linvfs names for file operations for consistent naming.
Merge of xfs-linux-melb:xfs-kern:25379a by kenmcd.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 6 02:46:47 2006 UTC (11 years, 7 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.3: +71 -53 lines
Diff to previous 1.3 (colored)

Reduce dmapi stack use.
Merge of xfs-linux-melb:xfs-kern:25371a by kenmcd.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 21 14:26:27 2006 UTC (11 years, 8 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.2: +36 -91 lines
Diff to previous 1.2 (colored)

Use xfs_vtoi and xfs_vfstom in the dmapi code instead of opencoding
behaviour lookups.

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

Revision 1.2 / (download) - annotate - [select for diffs], Thu Feb 16 02:47:52 2006 UTC (11 years, 8 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.1: +54 -72 lines
Diff to previous 1.1 (colored)

Revert accidentally introduced code from rename+patch.  Missed Makefile update.
Merge of xfs-linux-melb:xfs-kern:25209a by kenmcd.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 15 02:48:07 2006 UTC (11 years, 8 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN

Remove direct dependency between dmapi.ko and xfs.ko causing dmapi.ko to be held in "[permanent]" mode by the xfs module.
Merge of xfs-linux-melb:xfs-kern:25191a by kenmcd.

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>