kernel_optimize_test/drivers/block
Tetsuo Handa 1d5cfdb076 tree wide: use kvfree() than conditional kfree()/vfree()
There are many locations that do

  if (memory_was_allocated_by_vmalloc)
    vfree(ptr);
  else
    kfree(ptr);

but kvfree() can handle both kmalloc()ed memory and vmalloc()ed memory
using is_vmalloc_addr().  Unless callers have special reasons, we can
replace this branch with kvfree().  Please check and reply if you found
problems.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Jan Kara <jack@suse.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Acked-by: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: David Rientjes <rientjes@google.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: Boris Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-01-22 17:02:18 -08:00
..
aoe
drbd tree wide: use kvfree() than conditional kfree()/vfree() 2016-01-22 17:02:18 -08:00
mtip32xx Merge branch 'for-4.5/drivers' of git://git.kernel.dk/linux-block 2016-01-21 18:19:38 -08:00
paride
rsxx rsxx: don't open-code memdup_user() 2016-01-06 08:25:24 -05:00
xen-blkback Merge branch 'for-4.5/drivers' of git://git.kernel.dk/linux-block 2016-01-21 18:19:38 -08:00
zram zram: don't call idr_remove() from zram_remove() 2016-01-15 17:56:32 -08:00
amiflop.c
ataflop.c
brd.c mm, dax, pmem: introduce pfn_t 2016-01-15 17:56:32 -08:00
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cciss.c SCSI misc on 20160113 2016-01-13 19:37:36 -08:00
cciss.h
cpqarray.c
cpqarray.h
cryptoloop.c
DAC960.c
DAC960.h
floppy.c floppy: make local variable non-static 2015-12-08 15:15:32 +01:00
hd.c
ida_cmd.h
ida_ioctl.h
Kconfig
loop.c
loop.h
Makefile
mg_disk.c
nbd.c nbd: use ->compat_ioctl() 2016-01-08 21:20:32 -05:00
null_blk.c Merge branch 'for-4.5/lightnvm' of git://git.kernel.dk/linux-block 2016-01-21 19:01:55 -08:00
osdblk.c
pktcdvd.c Merge branch 'for-4.4/io-poll' of git://git.kernel.dk/linux-block 2015-11-10 17:23:49 -08:00
ps3disk.c
ps3vram.c
rbd_types.h
rbd.c rbd: don't put snap_context twice in rbd_queue_workfn() 2015-12-04 14:29:18 +01:00
skd_main.c
skd_s1120.h
smart1,2.h
sunvdc.c
swim3.c
swim_asm.S
swim.c
sx8.c sx8: use real time for the command seconds 2015-12-23 08:42:59 -07:00
umem.c
umem.h
virtio_blk.c
xen-blkfront.c xen/blkfront: Fix crash if backend doesn't follow the right states. 2016-01-04 12:21:26 -05:00
xsysace.c
z2ram.c