projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82fd1a9
)
mm: do_sync_mapping_range integrity fix
author
Nick Piggin
<
[email protected]
>
Tue, 6 Jan 2009 22:39:12 +0000
(14:39 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 6 Jan 2009 23:59:00 +0000
(15:59 -0800)
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 integrity bug.
Signed-off-by: Nick Piggin <
[email protected]
>
Cc: Chris Mason <
[email protected]
>
Cc: Dave Chinner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/sync.c
patch
|
blob
|
history
diff --git
a/fs/sync.c
b/fs/sync.c
index 0921d6d4b5e6d27b6fe471128da5b07cf699f137..ac02b56548bcb4245da894568e3a175a2746e9f9 100644
(file)
--- a/
fs/sync.c
+++ b/
fs/sync.c
@@
-295,7
+295,7
@@
int do_sync_mapping_range(struct address_space *mapping, loff_t offset,
if (flags & SYNC_FILE_RANGE_WRITE) {
ret = __filemap_fdatawrite_range(mapping, offset, endbyte,
- WB_SYNC_
NONE
);
+ WB_SYNC_
ALL
);
if (ret < 0)
goto out;
}