[PATCH] fs/aio.c: eliminate redundant loads in put_aio_ring_file

2016-09-14 Thread Rasmus Villemoes
Using a local variable we can prevent gcc from reloading aio_ring_file->f_inode->i_mapping twice, eliminating 2x2 dependent loads. Signed-off-by: Rasmus Villemoes --- fs/aio.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/aio.c

[PATCH] fs/aio.c: eliminate redundant loads in put_aio_ring_file

2016-09-14 Thread Rasmus Villemoes
Using a local variable we can prevent gcc from reloading aio_ring_file->f_inode->i_mapping twice, eliminating 2x2 dependent loads. Signed-off-by: Rasmus Villemoes --- fs/aio.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index