All of lore.kernel.org
 help / color / mirror / Atom feed
From: npiggin@suse.de
To: akpm@linux-foundation.org
Cc: linux-fsdevel@vger.kernel.org
Subject: [patch 3/7] mm: do_sync_mapping_range integrity fix
Date: Tue, 21 Oct 2008 19:09:50 +1100	[thread overview]
Message-ID: <20081021081138.983141000@nick.local0.net> (raw)
In-Reply-To: 20081021080947.032757000@suse.de

[-- Attachment #1: mm-do-sync-mapping-range-fix.patch --]
[-- Type: text/plain, Size: 645 bytes --]

Chris Mason notices do_sync_mapping_range didn't actually ask for data
integrity writeout. Unfortunately, it is advertised as being usable for
data integrity operations.

This is a data interity bug.

Signed-off-by: Nick Piggin <npiggin@suse.de>
---
Index: linux-2.6/fs/sync.c
===================================================================
--- linux-2.6.orig/fs/sync.c
+++ linux-2.6/fs/sync.c
@@ -269,7 +269,7 @@ int do_sync_mapping_range(struct address
 
 	if (flags & SYNC_FILE_RANGE_WRITE) {
 		ret = __filemap_fdatawrite_range(mapping, offset, endbyte,
-						WB_SYNC_NONE);
+						WB_SYNC_ALL);
 		if (ret < 0)
 			goto out;
 	}

-- 


  parent reply	other threads:[~2008-10-21  8:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21  8:09 [patch 0/7] writeback data integrity and other fixes npiggin
2008-10-21  8:09 ` [patch 1/7] mm: write_cache_pages writepage error fix npiggin
2008-10-21 21:55   ` Andrew Morton
2008-10-21 22:01     ` Matthew Wilcox
2008-10-21 22:05       ` Andrew Morton
2008-10-22  9:36     ` Nick Piggin
2008-10-22 16:37       ` Andrew Morton
2008-10-28 13:18         ` Nick Piggin
2008-10-21  8:09 ` [patch 2/7] mm: write_cache_pages integrity fix npiggin
2008-10-21  8:09 ` npiggin [this message]
2008-10-21  8:09 ` [patch 4/7] mm: write_cache_pages cyclic fix npiggin
2008-10-21  8:09 ` [patch 5/7] mm: write_cache_pages cleanups npiggin
2008-10-21  8:09 ` [patch 6/7] mm: write_cache_pages optimise page cleaning npiggin
2008-10-21  8:09 ` [patch 7/7] mm: write_cache_pages terminate quickly npiggin

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=20081021081138.983141000@nick.local0.net \
    --to=npiggin@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.