Home
last modified time | relevance | path

Searched refs:oldsize (Results 1 – 12 of 12) sorted by relevance

/linux-2.4.37.9/arch/i386/kernel/
Dldt.c34 int oldsize; in alloc_ldt() local
38 oldsize = pc->size; in alloc_ldt()
48 if (oldsize) in alloc_ldt()
49 memcpy(newldt, pc->ldt, oldsize*LDT_ENTRY_SIZE); in alloc_ldt()
52 memset(newldt+oldsize*LDT_ENTRY_SIZE, 0, (mincount-oldsize)*LDT_ENTRY_SIZE); in alloc_ldt()
64 if (oldsize) { in alloc_ldt()
65 if (oldsize*LDT_ENTRY_SIZE > PAGE_SIZE) in alloc_ldt()
/linux-2.4.37.9/fs/xfs/
Dxfs_dir2_sf.c944 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local
952 oldsize = (int)dp->i_d.di_size; in xfs_dir2_sf_removename()
956 if (oldsize < offsetof(xfs_dir2_sf_hdr_t, parent)) { in xfs_dir2_sf_removename()
960 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
963 ASSERT(oldsize >= XFS_DIR2_SF_HDR_SIZE(sfp->hdr.i8count)); in xfs_dir2_sf_removename()
991 newsize = oldsize - entsize; in xfs_dir2_sf_removename()
995 if (byteoff + entsize < oldsize) in xfs_dir2_sf_removename()
997 oldsize - (byteoff + entsize)); in xfs_dir2_sf_removename()
1006 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1182 int oldsize; /* old inode size */ in xfs_dir2_sf_toino4() local
[all …]
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dkmem.c145 kmem_realloc(void *ptr, size_t newsize, size_t oldsize, int flags) in kmem_realloc() argument
153 ((oldsize < newsize) ? oldsize : newsize)); in kmem_realloc()
154 kmem_free(ptr, oldsize); in kmem_realloc()
/linux-2.4.37.9/drivers/char/drm-4.0/
Dmemory.c164 void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area) in drm_realloc() argument
169 if (oldpt && oldsize) { in drm_realloc()
170 memcpy(pt, oldpt, oldsize); in drm_realloc()
171 drm_free(oldpt, oldsize, area); in drm_realloc()
DdrmP.h674 extern void *drm_realloc(void *oldpt, size_t oldsize, size_t size,
/linux-2.4.37.9/fs/ntfs/
Dattr.c374 __s64 oldsize = attr->size; in ntfs_resize_attr() local
379 if (newsize == oldsize) in ntfs_resize_attr()
399 if (newsize > oldsize) { in ntfs_resize_attr()
400 minsize = oldsize; in ntfs_resize_attr()
401 ntfs_bzero((char*)attr->d.data + oldsize, in ntfs_resize_attr()
402 newsize - oldsize); in ntfs_resize_attr()
413 if (newsize < oldsize) { in ntfs_resize_attr()
/linux-2.4.37.9/drivers/char/drm/
Ddrm_memory.h168 void *DRM(realloc)(void *oldpt, size_t oldsize, size_t size, int area) in DRM()
173 if (oldpt && oldsize) { in DRM()
174 memcpy(pt, oldpt, oldsize); in DRM()
175 DRM(free)(oldpt, oldsize, area); in DRM()
DdrmP.h754 extern void *DRM(realloc)(void *oldpt, size_t oldsize, size_t size,
/linux-2.4.37.9/fs/intermezzo/
Dfile.c483 loff_t oldsize; in izo_purge_file()
516 oldsize = dentry->d_inode->i_size; in izo_purge_file()
517 rc = izo_do_truncate(fset, dentry, 0, oldsize); in izo_purge_file()
520 rc = izo_do_truncate(fset, dentry, oldsize, 0); in izo_purge_file()
/linux-2.4.37.9/fs/
Dblock_dev.c66 int oldsize; in set_blocksize() local
84 oldsize = blksize_size[MAJOR(dev)][MINOR(dev)]; in set_blocksize()
85 if (oldsize == size) in set_blocksize()
88 if (!oldsize && size == BLOCK_SIZE) { in set_blocksize()
/linux-2.4.37.9/drivers/md/
Draid5.c268 int oldsize = conf->buffer_size; in get_active_stripe() local
285 PRINTK("raid5: switching cache buffer size, %d --> %d\n", oldsize, size); in get_active_stripe()
/linux-2.4.37.9/drivers/scsi/
Dosst.c2707 int oldsize = STp->buffer->buffer_size; in osst_get_frame_position() local
2719 STp->buffer->b_data = olddata; STp->buffer->buffer_size = oldsize; in osst_get_frame_position()
2768 STp->buffer->b_data = olddata; STp->buffer->buffer_size = oldsize; in osst_get_frame_position()