Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23126
b: refs/heads/master
c: ec86dc0
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott committed Mar 17, 2006
1 parent 11b996a commit 0e707df
Show file tree
Hide file tree
Showing 21 changed files with 136 additions and 123 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8867bc9bf0aed7181aa72c7c938c6ce830b75166
refs/heads/master: ec86dc02fdc062d0d298814b1e78b482ab38caf7
12 changes: 6 additions & 6 deletions trunk/fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ xfs_page_trace(
int mask)
{
xfs_inode_t *ip;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
loff_t isize = i_size_read(inode);
loff_t offset = page_offset(page);
int delalloc = -1, unmapped = -1, unwritten = -1;
Expand Down Expand Up @@ -214,7 +214,7 @@ xfs_alloc_ioend(
ioend->io_uptodate = 1; /* cleared if any I/O fails */
ioend->io_list = NULL;
ioend->io_type = type;
ioend->io_vnode = LINVFS_GET_VP(inode);
ioend->io_vnode = vn_from_inode(inode);
ioend->io_buffer_head = NULL;
ioend->io_buffer_tail = NULL;
atomic_inc(&ioend->io_vnode->v_iocount);
Expand All @@ -239,7 +239,7 @@ xfs_map_blocks(
xfs_iomap_t *mapp,
int flags)
{
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
int error, nmaps = 1;

VOP_BMAP(vp, offset, count, flags, mapp, &nmaps, error);
Expand Down Expand Up @@ -1229,7 +1229,7 @@ __xfs_get_block(
int direct,
bmapi_flags_t flags)
{
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
xfs_iomap_t iomap;
xfs_off_t offset;
ssize_t size;
Expand Down Expand Up @@ -1371,7 +1371,7 @@ xfs_vm_direct_IO(
{
struct file *file = iocb->ki_filp;
struct inode *inode = file->f_mapping->host;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
xfs_iomap_t iomap;
int maps = 1;
int error;
Expand Down Expand Up @@ -1410,7 +1410,7 @@ xfs_vm_bmap(
sector_t block)
{
struct inode *inode = (struct inode *)mapping->host;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
int error;

vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address);
Expand Down
10 changes: 5 additions & 5 deletions trunk/fs/xfs/linux-2.6/xfs_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ xfs_fs_encode_fh(
int len;
int is64 = 0;
#if XFS_BIG_INUMS
vfs_t *vfs = LINVFS_GET_VFS(inode->i_sb);
vfs_t *vfs = vfs_from_sb(inode->i_sb);

if (!(vfs->vfs_flag & VFS_32BITINODES)) {
/* filesystem may contain 64bit inode numbers */
Expand Down Expand Up @@ -139,14 +139,14 @@ xfs_fs_get_dentry(
vnode_t *vp;
struct inode *inode;
struct dentry *result;
vfs_t *vfsp = LINVFS_GET_VFS(sb);
vfs_t *vfsp = vfs_from_sb(sb);
int error;

VFS_VGET(vfsp, &vp, (fid_t *)data, error);
if (error || vp == NULL)
return ERR_PTR(-ESTALE) ;

inode = LINVFS_GET_IP(vp);
inode = vn_to_inode(vp);
result = d_alloc_anon(inode);
if (!result) {
iput(inode);
Expand All @@ -164,12 +164,12 @@ xfs_fs_get_parent(
struct dentry *parent;

cvp = NULL;
vp = LINVFS_GET_VP(child->d_inode);
vp = vn_from_inode(child->d_inode);
VOP_LOOKUP(vp, &dotdot, &cvp, 0, NULL, NULL, error);
if (unlikely(error))
return ERR_PTR(-error);

parent = d_alloc_anon(LINVFS_GET_IP(cvp));
parent = d_alloc_anon(vn_to_inode(cvp));
if (unlikely(!parent)) {
VN_RELE(cvp);
return ERR_PTR(-ENOMEM);
Expand Down
30 changes: 15 additions & 15 deletions trunk/fs/xfs/linux-2.6/xfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ __xfs_file_read(
{
struct iovec iov = {buf, count};
struct file *file = iocb->ki_filp;
vnode_t *vp = LINVFS_GET_VP(file->f_dentry->d_inode);
vnode_t *vp = vn_from_inode(file->f_dentry->d_inode);
ssize_t rval;

BUG_ON(iocb->ki_pos != pos);
Expand Down Expand Up @@ -102,7 +102,7 @@ __xfs_file_write(
struct iovec iov = {(void __user *)buf, count};
struct file *file = iocb->ki_filp;
struct inode *inode = file->f_mapping->host;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
ssize_t rval;

BUG_ON(iocb->ki_pos != pos);
Expand Down Expand Up @@ -144,7 +144,7 @@ __xfs_file_readv(
loff_t *ppos)
{
struct inode *inode = file->f_mapping->host;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
struct kiocb kiocb;
ssize_t rval;

Expand Down Expand Up @@ -189,7 +189,7 @@ __xfs_file_writev(
loff_t *ppos)
{
struct inode *inode = file->f_mapping->host;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
struct kiocb kiocb;
ssize_t rval;

Expand Down Expand Up @@ -233,7 +233,7 @@ xfs_file_sendfile(
read_actor_t actor,
void *target)
{
vnode_t *vp = LINVFS_GET_VP(filp->f_dentry->d_inode);
vnode_t *vp = vn_from_inode(filp->f_dentry->d_inode);
ssize_t rval;

VOP_SENDFILE(vp, filp, ppos, 0, count, actor, target, NULL, rval);
Expand All @@ -246,7 +246,7 @@ xfs_file_open(
struct inode *inode,
struct file *filp)
{
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
int error;

if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS)
Expand All @@ -263,7 +263,7 @@ xfs_file_release(
struct inode *inode,
struct file *filp)
{
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
int error = 0;

if (vp)
Expand All @@ -279,7 +279,7 @@ xfs_file_fsync(
int datasync)
{
struct inode *inode = dentry->d_inode;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
int error;
int flags = FSYNC_WAIT;

Expand Down Expand Up @@ -307,7 +307,7 @@ xfs_vm_nopage(
int *type)
{
struct inode *inode = area->vm_file->f_dentry->d_inode;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
xfs_mount_t *mp = XFS_VFSTOM(vp->v_vfsp);
int error;

Expand Down Expand Up @@ -340,7 +340,7 @@ xfs_file_readdir(
xfs_off_t start_offset, curr_offset;
xfs_dirent_t *dbp = NULL;

vp = LINVFS_GET_VP(filp->f_dentry->d_inode);
vp = vn_from_inode(filp->f_dentry->d_inode);
ASSERT(vp);

/* Try fairly hard to get memory */
Expand Down Expand Up @@ -409,7 +409,7 @@ xfs_file_mmap(
struct vm_area_struct *vma)
{
struct inode *ip = filp->f_dentry->d_inode;
vnode_t *vp = LINVFS_GET_VP(ip);
vnode_t *vp = vn_from_inode(ip);
vattr_t vattr;
int error;

Expand Down Expand Up @@ -437,7 +437,7 @@ xfs_file_ioctl(
{
int error;
struct inode *inode = filp->f_dentry->d_inode;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);

VOP_IOCTL(vp, inode, filp, 0, cmd, (void __user *)arg, error);
VMODIFY(vp);
Expand All @@ -459,7 +459,7 @@ xfs_file_ioctl_invis(
{
int error;
struct inode *inode = filp->f_dentry->d_inode;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);

ASSERT(vp);
VOP_IOCTL(vp, inode, filp, IO_INVIS, cmd, (void __user *)arg, error);
Expand All @@ -481,7 +481,7 @@ xfs_vm_mprotect(
struct vm_area_struct *vma,
unsigned int newflags)
{
vnode_t *vp = LINVFS_GET_VP(vma->vm_file->f_dentry->d_inode);
vnode_t *vp = vn_from_inode(vma->vm_file->f_dentry->d_inode);
int error = 0;

if (vp->v_vfsp->vfs_flag & VFS_DMI) {
Expand All @@ -507,7 +507,7 @@ STATIC int
xfs_file_open_exec(
struct inode *inode)
{
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_from_inode(inode);
xfs_mount_t *mp = XFS_VFSTOM(vp->v_vfsp);
int error = 0;
xfs_inode_t *ip;
Expand Down
6 changes: 3 additions & 3 deletions trunk/fs/xfs/linux-2.6/xfs_fs_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fs_tosspages(
int fiopt)
{
vnode_t *vp = BHV_TO_VNODE(bdp);
struct inode *ip = LINVFS_GET_IP(vp);
struct inode *ip = vn_to_inode(vp);

if (VN_CACHED(vp))
truncate_inode_pages(ip->i_mapping, first);
Expand All @@ -76,7 +76,7 @@ fs_flushinval_pages(
int fiopt)
{
vnode_t *vp = BHV_TO_VNODE(bdp);
struct inode *ip = LINVFS_GET_IP(vp);
struct inode *ip = vn_to_inode(vp);

if (VN_CACHED(vp)) {
filemap_write_and_wait(ip->i_mapping);
Expand All @@ -98,7 +98,7 @@ fs_flush_pages(
int fiopt)
{
vnode_t *vp = BHV_TO_VNODE(bdp);
struct inode *ip = LINVFS_GET_IP(vp);
struct inode *ip = vn_to_inode(vp);

if (VN_CACHED(vp)) {
filemap_fdatawrite(ip->i_mapping);
Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/xfs/linux-2.6/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ xfs_find_handle(
}

/* we need the vnode */
vp = LINVFS_GET_VP(inode);
vp = vn_from_inode(inode);

/* now we can grab the fsid */
memcpy(&handle.ha_fsid, vp->v_vfsp->vfs_altfsid, sizeof(xfs_fsid_t));
Expand Down Expand Up @@ -256,7 +256,7 @@ xfs_vget_fsop_handlereq(
}

vpp = XFS_ITOV(ip);
inodep = LINVFS_GET_IP(vpp);
inodep = vn_to_inode(vpp);
xfs_iunlock(ip, XFS_ILOCK_SHARED);

*vp = vpp;
Expand Down Expand Up @@ -715,7 +715,7 @@ xfs_ioctl(
xfs_inode_t *ip;
xfs_mount_t *mp;

vp = LINVFS_GET_VP(inode);
vp = vn_from_inode(inode);

vn_trace_entry(vp, "xfs_ioctl", (inst_t *)__return_address);

Expand Down Expand Up @@ -1270,7 +1270,7 @@ xfs_ioc_xattr(
}

case XFS_IOC_GETVERSION: {
flags = LINVFS_GET_IP(vp)->i_generation;
flags = vn_to_inode(vp)->i_generation;
if (copy_to_user(arg, &flags, sizeof(flags)))
error = -EFAULT;
break;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/xfs/linux-2.6/xfs_ioctl32.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ xfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)
{
int error;
struct inode *inode = f->f_dentry->d_inode;
vnode_t *vp = LINVFS_GET_VP(inode);
vnode_t *vp = vn_to_inode(inode);

switch (cmd) {
case XFS_IOC_DIOINFO:
Expand Down
Loading

0 comments on commit 0e707df

Please sign in to comment.