| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] fix corruption case for block size < page size |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Sat, 13 Dec 2008 11:48:08 -0600 |
| In-reply-to: | <49435F35.40109@sandeen.net> |
| References: | <49435F35.40109@sandeen.net> |
| User-agent: | Thunderbird 2.0.0.18 (Macintosh/20081105) |
Eric Sandeen wrote:
> Index: xfs/fs/xfs/linux-2.6/xfs_aops.c
> ===================================================================
> --- xfs.orig/fs/xfs/linux-2.6/xfs_aops.c
> +++ xfs/fs/xfs/linux-2.6/xfs_aops.c
> @@ -1042,6 +1042,13 @@ xfs_page_state_convert(
> continue;
> }
>
> + /* This means its a hole (discard_buffer leaves uptodate set) */
>
I've offended cw's sense of grammar, and I did cringe when I removed
the apostrophe in the name of an 80char line, so how about this :)
Index: xfs/fs/xfs/linux-2.6/xfs_aops.c
===================================================================
--- xfs.orig/fs/xfs/linux-2.6/xfs_aops.c
+++ xfs/fs/xfs/linux-2.6/xfs_aops.c
@@ -1042,6 +1042,13 @@ xfs_page_state_convert(
continue;
}
+ /* It's a hole. (discard_buffer leaves uptodate set) */
+ if (!buffer_dirty(bh) && !buffer_mapped(bh) &&
+ buffer_uptodate(bh)) {
+ iomap_valid = 0;
+ continue;
+ }
+
if (iomap_valid)
iomap_valid = xfs_iomap_valid(&iomap, offset);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 12x performance drop on md/linux+sw raid1 due to barriers [xfs], Eric Sandeen |
|---|---|
| Next by Date: | Re: [PATCH] fix corruption case for block size < page size, Eric Sandeen |
| Previous by Thread: | [PATCH] fix corruption case for block size < page size, Eric Sandeen |
| Next by Thread: | Re: [PATCH] fix corruption case for block size < page size, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |