| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 3/4] xfs: simplify xfs_ail_max |
| From: | Jeff Liu <jeff.liu@xxxxxxxxxx> |
| Date: | Thu, 26 Dec 2013 18:52:33 +0800 |
| Cc: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20131226100721.GA11950@xxxxxxxxxxxxx> |
| References: | <52B9829A.10804@xxxxxxxxxx> <20131226100721.GA11950@xxxxxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
On 12/26 2013 18:07 PM, Christoph Hellwig wrote: > On Tue, Dec 24, 2013 at 08:48:26PM +0800, Jeff Liu wrote: >> From: Jie Liu <jeff.liu@xxxxxxxxxx> >> >> We have already simplified xfs_ail_min() with a new list helper, i.e, >> list_first_entry_or_null(), but xfs_ail_max() still remains as same >> as there is no corresponding list helper we can use for now. It's >> fairly easy to simulate the list behavior of getting the last item >> in the AIL, therefore we can simplify xfs_ail_max() and move it to >> the header file to make this pair of AIL routines looks symmetrical. > > The usageof list_last_entry is fine with me, as is making it inline. > But I think using the explicit if is a lot more readable than the ? : > expression. Sounds sensible to me, will take care of it. Thanks, -Jeff |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 4/4] xfs: rename mem_to_page to xfs_bufmem_to_page, Jeff Liu |
|---|---|
| Next by Date: | Re: md-RAID5/6 stripe_cache_size default value vs performance vs memory footprint, NeilBrown |
| Previous by Thread: | Re: [PATCH 3/4] xfs: simplify xfs_ail_max, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 3/4] xfs: simplify xfs_ail_max, Mark Tinguely |
| Indexes: | [Date] [Thread] [Top] [All Lists] |