Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient

2017-06-03 Thread Sean Fu
On Sat, Mar 25, 2017 at 08:34:30PM -0700, Eric Biggers wrote: > On Thu, Dec 29, 2016 at 01:34:45PM -0600, Eric Biggers wrote: > > From: Eric Biggers > > > > To install a buffer_head into the cpu's LRU queue, bh_lru_install() > > would construct a new copy of the queue and then memcpy it over the

Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient

2017-03-25 Thread Eric Biggers
On Thu, Dec 29, 2016 at 01:34:45PM -0600, Eric Biggers wrote: > From: Eric Biggers > > To install a buffer_head into the cpu's LRU queue, bh_lru_install() > would construct a new copy of the queue and then memcpy it over the real > queue. But it's easily possible to do the update in-place, which

[PATCH] fs/buffer.c: make bh_lru_install() more efficient

2016-12-29 Thread Eric Biggers
From: Eric Biggers To install a buffer_head into the cpu's LRU queue, bh_lru_install() would construct a new copy of the queue and then memcpy it over the real queue. But it's easily possible to do the update in-place, which is faster and simpler. Some work can also be skipped if the buffer_hea