fsx: fix msync parameters
authorCurt Wohlgemuth <curtw@google.com>
Tue, 7 Feb 2012 19:16:06 +0000 (11:16 -0800)
committerChristoph Hellwig <hch@lst.de>
Sat, 31 Mar 2012 20:14:06 +0000 (20:14 +0000)
commita7e35712e894152c6b277bcb69e3623e0e6d545c
tree7552e4ab218fd724e6df9c0aa60012e4b6da75a5
parent749f28fdc54882ecc1ebc8c5a5c632d8bc4e4c72
fsx: fix msync parameters

This explicitly sends MS_SYNC as the flag to msync() in
fsx.c, in domapwrite().  Without this flag, the memory
written to the mmap'ed region will not be flushed to disk;
in fact, on Linux, calling msync() with a '0' or MS_ASYNC
flag is a no-op.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
ltp/fsx.c