Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-21 Thread Gargi Sharma
On Sun, Jan 21, 2018 at 4:38 AM, René Scharfe wrote: > > Am 20.01.2018 um 23:24 schrieb Gargi Sharma: > > On Sat, Jan 20, 2018 at 1:02 AM, Eric Wong wrote: > >> Gargi Sharma wrote: > >>> --- a/list.h > >>> +++ b/list.h > >>> @@ -93,6 +93,13 @@

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-20 Thread René Scharfe
Am 20.01.2018 um 23:24 schrieb Gargi Sharma: > On Sat, Jan 20, 2018 at 1:02 AM, Eric Wong wrote: >> Gargi Sharma wrote: >>> --- a/list.h >>> +++ b/list.h >>> @@ -93,6 +93,13 @@ static inline void list_move(struct list_head *elem, >>> struct list_head *head)

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-20 Thread Gargi Sharma
On Sat, Jan 20, 2018 at 12:59 AM, Eric Sunshine wrote: > On Fri, Jan 19, 2018 at 6:36 PM, Gargi Sharma wrote: >> Replace the custom calls to mru.[ch] with calls to list.h. This patch is >> the final step in removing the mru API completely and inlining

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-20 Thread Gargi Sharma
On Sat, Jan 20, 2018 at 1:02 AM, Eric Wong wrote: > Gargi Sharma wrote: >> --- a/list.h >> +++ b/list.h >> @@ -93,6 +93,13 @@ static inline void list_move(struct list_head *elem, >> struct list_head *head) >> list_add(elem, head); >> } >> >> +/* Move

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-19 Thread Eric Wong
Gargi Sharma wrote: > --- a/list.h > +++ b/list.h > @@ -93,6 +93,13 @@ static inline void list_move(struct list_head *elem, > struct list_head *head) > list_add(elem, head); > } > > +/* Move to the front of the list. */ > +static inline void list_move_to_front(struct

Re: [PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-19 Thread Eric Sunshine
On Fri, Jan 19, 2018 at 6:36 PM, Gargi Sharma wrote: > Replace the custom calls to mru.[ch] with calls to list.h. This patch is > the final step in removing the mru API completely and inlining the logic. > This patch leads to significant code reduction and the mru API hence,

[PATCH v3] mru: Replace mru.[ch] with list.h implementation

2018-01-19 Thread Gargi Sharma
Replace the custom calls to mru.[ch] with calls to list.h. This patch is the final step in removing the mru API completely and inlining the logic. This patch leads to significant code reduction and the mru API hence, is not a useful abstraction anymore. Signed-off-by: Gargi Sharma