]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
include/linux/aio.h: cpp->C conversions
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 21 Jul 2012 00:55:15 +0000 (10:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:30 +0000 (13:53 +1000)
commit21a0e3fb9bbbbd2d35ad4ad7366a173665422045
tree217e6aa2d350d6de4d100d99e5720e9894332842
parenta4411a49244ed331c49d3f2732568bceb03d50f1
include/linux/aio.h: cpp->C conversions

Convert init_sync_kiocb() from a nasty macro into a nice C function.  The
struct assignment trick takes care of zeroing all unmentioned fields.
Shrinks fs/read_write.o's .text from 9857 bytes to 9714.

Also demacroize is_sync_kiocb() and aio_ring_avail().  The latter fixes an
arg-referenced-multiple-times hand grenade.

Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/aio.h