From: Jie Liu <jeff.liu@oracle.com>
To: Mark Tinguely <tinguely@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH v3] xfs: probe data buffer from page cache for unwritten extents
Date: Thu, 19 Jul 2012 22:39:45 +0800 [thread overview]
Message-ID: <50081C31.5090507@oracle.com> (raw)
In-Reply-To: <4FFB099C.6020809@sgi.com>
On 07/10/2012 12:41 AM, Mark Tinguely wrote:
> On 07/03/12 02:15, Jeff Liu wrote:
>> Hello,
>>
>> This is v3 of the patch.
>>
>> We can trigger BUG() in xfs_seek_data() if met two unwritten without
>> data or hole extents at last version.
>> So making the extents map reading in loop could solve it.
>>
>> Sorry, Am not yet try the repeated holes scenario according to Dave's
>> comments as lack of X64 test env, still
>> waiting for it ready. But this patch is already too long delayed, I
>> have worked it out one weeks ago.
>> So I'd like to post it because of it could handle repeated
>> hole/unwritten extents well in a loop, and I also improved
>> xfstests:286 with those cases for the verification, will post it soon.
>>
>> v2->v3:
>> Tested by Mark, hit BUG() for continuous unwritten extents without
>> data wrote.
>> * xfs_seek_data(), remove BUG() and having extents map search in loop.
>>
>> v1->v2:
>> suggested by Mark.
>> * xfs_has_unwritten_buffer(), use the input offset instead of
>> bmap->br_startoff to
>> calculate page index for data buffer probing.
>>
>> Thanks,
>> -Jeff
>>
>>
>> Signed-off-by: Jie Liu<jeff.liu@oracle.com>
>>
>> ---
>
> Nice. Up to refining xfs_seek_hole()?
Thanks for the review.
Sorry for my late response, I missed you this email.
Sure, the refinement will be reflected in next post. :)
Thanks,
-Jeff
>
>
> Reviewed-by: Mark Tinguely <tinguely@sgi.com>
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-07-19 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 7:15 [PATCH v3] xfs: probe data buffer from page cache for unwritten extents Jeff Liu
2012-07-09 16:41 ` Mark Tinguely
2012-07-19 14:39 ` Jie Liu [this message]
2012-07-17 7:18 ` Christoph Hellwig
2012-07-17 12:27 ` Jeff Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50081C31.5090507@oracle.com \
--to=jeff.liu@oracle.com \
--cc=tinguely@sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox