[PATCH] mm: fix SYNC_FILE_RANGE_WRITE to not block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This mode of sync_file_range isn't supposed to block.

Signed-off-by: Phillip Susi <psusi@xxxxxxxxxx>
---
 mm/filemap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index c571bae..c5e2036 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -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);
 
-- 
1.7.9.5

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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]