X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fufs%2Ftruncate.c;h=2a2987c90516f31148039d34ec46f236d5e29192;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=b22169e7ba7600fd608eb6e526c5d03a6e4f9f6b;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c index b22169e7b..2a2987c90 100644 --- a/fs/ufs/truncate.c +++ b/fs/ufs/truncate.c @@ -74,7 +74,7 @@ static int ufs_trunc_direct (struct inode * inode) struct super_block * sb; struct ufs_sb_private_info * uspi; struct buffer_head * bh; - u32 * p; + __fs32 * p; unsigned frag1, frag2, frag3, frag4, block1, block2; unsigned frag_to_free, free_count; unsigned i, j, tmp; @@ -199,13 +199,13 @@ next2:; } -static int ufs_trunc_indirect (struct inode * inode, unsigned offset, u32 * p) +static int ufs_trunc_indirect (struct inode * inode, unsigned offset, __fs32 *p) { struct super_block * sb; struct ufs_sb_private_info * uspi; struct ufs_buffer_head * ind_ubh; struct buffer_head * bh; - u32 * ind; + __fs32 * ind; unsigned indirect_block, i, j, tmp; unsigned frag_to_free, free_count; int retry; @@ -296,13 +296,13 @@ next:; return retry; } -static int ufs_trunc_dindirect (struct inode * inode, unsigned offset, u32 * p) +static int ufs_trunc_dindirect (struct inode *inode, unsigned offset, __fs32 *p) { struct super_block * sb; struct ufs_sb_private_info * uspi; struct ufs_buffer_head * dind_bh; unsigned i, tmp, dindirect_block; - u32 * dind; + __fs32 * dind; int retry = 0; UFSD(("ENTER\n")) @@ -371,7 +371,7 @@ static int ufs_trunc_tindirect (struct inode * inode) struct ufs_sb_private_info * uspi; struct ufs_buffer_head * tind_bh; unsigned tindirect_block, tmp, i; - u32 * tind, * p; + __fs32 * tind, * p; int retry; UFSD(("ENTER\n")) @@ -449,9 +449,9 @@ void ufs_truncate (struct inode * inode) while (1) { retry = ufs_trunc_direct(inode); retry |= ufs_trunc_indirect (inode, UFS_IND_BLOCK, - (u32 *) &ufsi->i_u1.i_data[UFS_IND_BLOCK]); + (__fs32 *) &ufsi->i_u1.i_data[UFS_IND_BLOCK]); retry |= ufs_trunc_dindirect (inode, UFS_IND_BLOCK + uspi->s_apb, - (u32 *) &ufsi->i_u1.i_data[UFS_DIND_BLOCK]); + (__fs32 *) &ufsi->i_u1.i_data[UFS_DIND_BLOCK]); retry |= ufs_trunc_tindirect (inode); if (!retry) break;