diff options
author | Christoph Hellwig <hch@lst.de> | 2006-06-09 00:48:37 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-06-09 00:48:37 -0400 |
commit | ff9901c1e7c7be06a99c59cfc3133d2316cbc957 (patch) | |
tree | d9cae983cf713d07ff65566e56beca52c21412d1 /fs/xfs/xfs_dir2_leaf.c | |
parent | 3e57ecf640428c01ba1ed8c8fc538447ada1715b (diff) |
[XFS] endianess annotations for xfs_dir2_data_entry_t
SGI-PV: 943272
SGI-Modid: xfs-linux-melb:xfs-kern:25806a
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_leaf.c')
-rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index 5fe88d546c75..74ef99f2ee5f 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c | |||
@@ -407,7 +407,7 @@ xfs_dir2_leaf_addname( | |||
407 | * Initialize our new entry (at last). | 407 | * Initialize our new entry (at last). |
408 | */ | 408 | */ |
409 | dep = (xfs_dir2_data_entry_t *)dup; | 409 | dep = (xfs_dir2_data_entry_t *)dup; |
410 | INT_SET(dep->inumber, ARCH_CONVERT, args->inumber); | 410 | dep->inumber = cpu_to_be64(args->inumber); |
411 | dep->namelen = args->namelen; | 411 | dep->namelen = args->namelen; |
412 | memcpy(dep->name, args->name, dep->namelen); | 412 | memcpy(dep->name, args->name, dep->namelen); |
413 | tagp = XFS_DIR2_DATA_ENTRY_TAG_P(dep); | 413 | tagp = XFS_DIR2_DATA_ENTRY_TAG_P(dep); |
@@ -1098,7 +1098,7 @@ xfs_dir2_leaf_getdents( | |||
1098 | 1098 | ||
1099 | p->cook = XFS_DIR2_BYTE_TO_DATAPTR(mp, curoff + length); | 1099 | p->cook = XFS_DIR2_BYTE_TO_DATAPTR(mp, curoff + length); |
1100 | 1100 | ||
1101 | p->ino = INT_GET(dep->inumber, ARCH_CONVERT); | 1101 | p->ino = be64_to_cpu(dep->inumber); |
1102 | #if XFS_BIG_INUMS | 1102 | #if XFS_BIG_INUMS |
1103 | p->ino += mp->m_inoadd; | 1103 | p->ino += mp->m_inoadd; |
1104 | #endif | 1104 | #endif |
@@ -1319,7 +1319,7 @@ xfs_dir2_leaf_lookup( | |||
1319 | /* | 1319 | /* |
1320 | * Return the found inode number. | 1320 | * Return the found inode number. |
1321 | */ | 1321 | */ |
1322 | args->inumber = INT_GET(dep->inumber, ARCH_CONVERT); | 1322 | args->inumber = be64_to_cpu(dep->inumber); |
1323 | xfs_da_brelse(tp, dbp); | 1323 | xfs_da_brelse(tp, dbp); |
1324 | xfs_da_brelse(tp, lbp); | 1324 | xfs_da_brelse(tp, lbp); |
1325 | return XFS_ERROR(EEXIST); | 1325 | return XFS_ERROR(EEXIST); |
@@ -1606,11 +1606,11 @@ xfs_dir2_leaf_replace( | |||
1606 | dep = (xfs_dir2_data_entry_t *) | 1606 | dep = (xfs_dir2_data_entry_t *) |
1607 | ((char *)dbp->data + | 1607 | ((char *)dbp->data + |
1608 | XFS_DIR2_DATAPTR_TO_OFF(dp->i_mount, be32_to_cpu(lep->address))); | 1608 | XFS_DIR2_DATAPTR_TO_OFF(dp->i_mount, be32_to_cpu(lep->address))); |
1609 | ASSERT(args->inumber != INT_GET(dep->inumber, ARCH_CONVERT)); | 1609 | ASSERT(args->inumber != be64_to_cpu(dep->inumber)); |
1610 | /* | 1610 | /* |
1611 | * Put the new inode number in, log it. | 1611 | * Put the new inode number in, log it. |
1612 | */ | 1612 | */ |
1613 | INT_SET(dep->inumber, ARCH_CONVERT, args->inumber); | 1613 | dep->inumber = cpu_to_be64(args->inumber); |
1614 | tp = args->trans; | 1614 | tp = args->trans; |
1615 | xfs_dir2_data_log_entry(tp, dbp, dep); | 1615 | xfs_dir2_data_log_entry(tp, dbp, dep); |
1616 | xfs_da_buf_done(dbp); | 1616 | xfs_da_buf_done(dbp); |