diff options
Diffstat (limited to 'fs/xfs/linux-2.6')
| -rw-r--r-- | fs/xfs/linux-2.6/kmem.h | 4 | ||||
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_file.c | 2 | ||||
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 4 | ||||
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 1 | ||||
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.c | 1 |
5 files changed, 5 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index 939bd84bc7ee..0e8293c5a32f 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h | |||
| @@ -91,8 +91,8 @@ kmem_zone_free(kmem_zone_t *zone, void *ptr) | |||
| 91 | static inline void | 91 | static inline void |
| 92 | kmem_zone_destroy(kmem_zone_t *zone) | 92 | kmem_zone_destroy(kmem_zone_t *zone) |
| 93 | { | 93 | { |
| 94 | if (zone && kmem_cache_destroy(zone)) | 94 | if (zone) |
| 95 | BUG(); | 95 | kmem_cache_destroy(zone); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | extern void *kmem_zone_alloc(kmem_zone_t *, unsigned int __nocast); | 98 | extern void *kmem_zone_alloc(kmem_zone_t *, unsigned int __nocast); |
diff --git a/fs/xfs/linux-2.6/xfs_file.c b/fs/xfs/linux-2.6/xfs_file.c index 3d4f6dff2113..41cfcba7ce49 100644 --- a/fs/xfs/linux-2.6/xfs_file.c +++ b/fs/xfs/linux-2.6/xfs_file.c | |||
| @@ -370,7 +370,7 @@ xfs_file_readdir( | |||
| 370 | 370 | ||
| 371 | /* Try fairly hard to get memory */ | 371 | /* Try fairly hard to get memory */ |
| 372 | do { | 372 | do { |
| 373 | if ((read_buf = (caddr_t)kmalloc(rlen, GFP_KERNEL))) | 373 | if ((read_buf = kmalloc(rlen, GFP_KERNEL))) |
| 374 | break; | 374 | break; |
| 375 | rlen >>= 1; | 375 | rlen >>= 1; |
| 376 | } while (rlen >= 1024); | 376 | } while (rlen >= 1024); |
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index d9180020de63..22e3b714f629 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
| @@ -553,13 +553,13 @@ xfs_vn_follow_link( | |||
| 553 | ASSERT(dentry); | 553 | ASSERT(dentry); |
| 554 | ASSERT(nd); | 554 | ASSERT(nd); |
| 555 | 555 | ||
| 556 | link = (char *)kmalloc(MAXPATHLEN+1, GFP_KERNEL); | 556 | link = kmalloc(MAXPATHLEN+1, GFP_KERNEL); |
| 557 | if (!link) { | 557 | if (!link) { |
| 558 | nd_set_link(nd, ERR_PTR(-ENOMEM)); | 558 | nd_set_link(nd, ERR_PTR(-ENOMEM)); |
| 559 | return NULL; | 559 | return NULL; |
| 560 | } | 560 | } |
| 561 | 561 | ||
| 562 | uio = (uio_t *)kmalloc(sizeof(uio_t), GFP_KERNEL); | 562 | uio = kmalloc(sizeof(uio_t), GFP_KERNEL); |
| 563 | if (!uio) { | 563 | if (!uio) { |
| 564 | kfree(link); | 564 | kfree(link); |
| 565 | nd_set_link(nd, ERR_PTR(-ENOMEM)); | 565 | nd_set_link(nd, ERR_PTR(-ENOMEM)); |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 4754f342a5d3..9df9ed37d219 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
| @@ -171,7 +171,6 @@ xfs_revalidate_inode( | |||
| 171 | break; | 171 | break; |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | inode->i_blksize = xfs_preferred_iosize(mp); | ||
| 175 | inode->i_generation = ip->i_d.di_gen; | 174 | inode->i_generation = ip->i_d.di_gen; |
| 176 | i_size_write(inode, ip->i_d.di_size); | 175 | i_size_write(inode, ip->i_d.di_size); |
| 177 | inode->i_blocks = | 176 | inode->i_blocks = |
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index 6628d96b6fd6..553fa731ade5 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
| @@ -122,7 +122,6 @@ vn_revalidate_core( | |||
| 122 | inode->i_blocks = vap->va_nblocks; | 122 | inode->i_blocks = vap->va_nblocks; |
| 123 | inode->i_mtime = vap->va_mtime; | 123 | inode->i_mtime = vap->va_mtime; |
| 124 | inode->i_ctime = vap->va_ctime; | 124 | inode->i_ctime = vap->va_ctime; |
| 125 | inode->i_blksize = vap->va_blocksize; | ||
| 126 | if (vap->va_xflags & XFS_XFLAG_IMMUTABLE) | 125 | if (vap->va_xflags & XFS_XFLAG_IMMUTABLE) |
| 127 | inode->i_flags |= S_IMMUTABLE; | 126 | inode->i_flags |= S_IMMUTABLE; |
| 128 | else | 127 | else |
