| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfsqa: make hole tests independent of speculative allocation patterns |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Tue, 21 Dec 2010 11:46:32 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1292922120-28360-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1292922120-28360-1-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Tue, Dec 21, 2010 at 08:02:00PM +1100, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > Many of the "count-the-holes" tests (008, 012, etc) do writes that extend the > file and hence allocation patterns are dependent on speculative allocation > beyond EOF behaviour. Hence if we change that behaviour, these tests all fail > because there is a different pattern of holes. > > Make the tests independent of EOF preallocation behaviour by first truncating > the file to the size the test is defined to use. This prevents speculative > prealocation from occurring, and hence changes in such behaviour will not > cause > the tests to fail. > > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> Looks good and fixes the test failure I saw with the dirty release counter patch. Reviewed-by: Christoph Hellwig <hch@xxxxxx> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 07/34] xfs: don't truncate prealloc from frequently accessed inodes, Christoph Hellwig |
|---|---|
| Next by Date: | Re: Issue on kernel 2.6.35.9 vanilla, Dave Chinner |
| Previous by Thread: | [PATCH] xfsqa: make hole tests independent of speculative allocation patterns, Dave Chinner |
| Next by Thread: | Magnum 4D Jackpot 1 Winning Formula!, Melvin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |