Date: Mon Sep 16 09:10:25 PDT 2002
Workarea: jen.americas.sgi.com:/src/lord/xfs-merge.2.5
Author: lord
The following file(s) were checked into:
bonnie.engr.sgi.com:/isms/slinx/2.5.x-xfs
Modid: 2.5.x-xfs:slinx:
127481a
linux/fs/xfs/linux/xfs_lrw.c - 1.166
linux/fs/xfs/support/time.h - 1.7
linux/fs/xfs/linux/xfs_aops.c - 1.5
linvfs_direct_IO(
int rw,
struct inode *inode,
- char *buf,
+ const struct iovec *iov,
loff_t offset,
- size_t count)
+ unsigned long nr_segs)
{
- return generic_direct_IO(rw, inode, buf, offset, count,
+ return generic_direct_IO(rw, inode, iov, offset, nr_segs,
linvfs_get_blocks_direct);
}
xfs_fsize_t n, limit = XFS_MAX_FILE_OFFSET;
xfs_iocore_t *io;
vnode_t *vp;
+ struct iovec iov;
int iolock;
int direct = file->f_flags & O_DIRECT;
int eventsent = 0;
xfs_inval_cached_pages(vp, &xip->i_iocore, *offset, 1, 1);
}
- ret = generic_file_write_nolock(file, buf, size, offset);
+ iov.iov_base = (void *)buf;
+ iov.iov_len = size;
+
+ ret = generic_file_write_nolock(file, &iov, 1, offset);
if ((ret == -ENOSPC) &&
DM_EVENT_ENABLED(vp->v_vfsp, xip, DM_EVENT_NOSPACE) &&
#ifndef __XFS_VERSION_H__
#define __XFS_VERSION_H__
-#define XFS_VERSION_STRING "CVS-09/13/02:21"
+#define XFS_VERSION_STRING "CVS-09/15/02:17"
#endif /* __XFS_VERSION_H__ */
static inline void nanotime(struct timespec *tvp)
{
tvp->tv_sec = xtime.tv_sec;
- tvp->tv_nsec = xtime.tv_usec * 1000;
+ tvp->tv_nsec = xtime.tv_nsec;
}
#endif /* __XFS_SUPPORT_TIME_H__ */