fs: update dynamic fsync

Update dynamic fsync to a more recent version.
It should now prevent data corruption more
effectively and perform much smarter.

Because it should now be safe to use it as daily,
turn fsync off and enable dynamic fsync by default.

Change-Id: I7bf99354112dd23a850c34722b45678e287e65d1
Signed-off-by: Blechd0se <alex.christ@hotmail.de>
mutex: dynamically disable mutex spinning at high load Date

Change-Id: Iacdbd5017495bcc6ff843ebb6c23f29586a7a80a
Signed-off-by: Blechd0se <alex.christ@hotmail.de>
ashmem: avoid deadlock between read and mmap calls

Avoid holding ashmem_mutex across code that can page fault.  Page faults
grab the mmap_sem for the process, which are also held by mmap calls
prior to calling ashmem_mmap, which locks ashmem_mutex.  The reversed
order of locking between the two can deadlock.

The calls that can page fault are read() and the ASHMEM_SET_NAME and
ASHMEM_GET_NAME ioctls.  Move the code that accesses userspace pages
outside the ashmem_mutex.

Change-Id: Id3a7ec8d0d12ac75194da37bcc214f87c34a862c
Signed-off-by: Blechd0se <alex.christ@hotmail.de>