| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfs: stop using the page cache to back the buffer cache |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Fri, 11 Mar 2011 05:16:42 -0500 |
| Cc: | xfs@xxxxxxxxxxx, chris.mason@xxxxxxxxxx |
| In-reply-to: | <1299719104-11961-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1299719104-11961-1-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
> + if (((unsigned long)(bp->b_addr + bp->b_buffer_length - 1) &
> + PAGE_MASK) !=
> + ((unsigned long)bp->b_addr & PAGE_MASK)) {
> + /* b_addr spans two pages - use alloc_page instead */
> + kmem_free(bp->b_addr);
> + bp->b_addr = NULL;
> + goto use_alloc_page;
> + }
Did you manage to hit this case? If it happens with any frequency under
real workloads we really need to find a wayto avoid the allocation to
start with.
Otherwise looks good,
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] xfstests: rework "dmapi" subtree build mechanism, Christoph Hellwig |
|---|---|
| Next by Date: | [next] xfs: error: called object 'panic' is not a function, Geert Uytterhoeven |
| Previous by Thread: | [PATCH] xfs: stop using the page cache to back the buffer cache, Dave Chinner |
| Next by Thread: | Re: [PATCH] xfs: stop using the page cache to back the buffer cache, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |