Skip to contentSkip to conversation

mm: fix SYNC_FILE_RANGE_WRITE to not block

PATCH New Phillip Susi 1 participant 1 message Feb 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: fix SYNC_FILE_RANGE_WRITE to not block

This mode of sync_file_range isn't supposed to block.

---
 mm/filemap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/filemap.c +1 -1
index c571bae..c5e2036 100644
@@ -232,7 +232,7 @@ EXPORT_SYMBOL(filemap_fdatawrite);
 int filemap_fdatawrite_range(struct address_space *mapping, loff_t start,
 				loff_t end)
 {
-	return __filemap_fdatawrite_range(mapping, start, end, WB_SYNC_ALL);
+	return __filemap_fdatawrite_range(mapping, start, end, WB_SYNC_NONE);
 }
 EXPORT_SYMBOL(filemap_fdatawrite_range);
 
Signature · 7 lines
1.7.9.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>