]> git.hungrycats.org Git - linux/commitdiff
[XFS] Use xfs_dev_t size rather than dev_t size in xfs_attr_fork initialization
authorNathan Scott <nathans@sgi.com>
Tue, 12 Aug 2003 01:25:53 +0000 (20:25 -0500)
committerStephen Lord <lord@jen.americas.sgi.com>
Tue, 12 Aug 2003 01:25:53 +0000 (20:25 -0500)
SGI Modid: 2.5.x-xfs:slinx:155551a

fs/xfs/xfs_bmap.c

index c3ee6e981af67d3b2af1984e7f6add7911e9b074..c2568de8a17d0ab9c05f1b12ed14e2cd425f5bba 100644 (file)
@@ -3810,7 +3810,7 @@ xfs_bmap_add_attrfork(
        xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
        switch (ip->i_d.di_format) {
        case XFS_DINODE_FMT_DEV:
-               ip->i_d.di_forkoff = roundup(sizeof(dev_t), 8) >> 3;
+               ip->i_d.di_forkoff = roundup(sizeof(xfs_dev_t), 8) >> 3;
                break;
        case XFS_DINODE_FMT_UUID:
                ip->i_d.di_forkoff = roundup(sizeof(uuid_t), 8) >> 3;