fs/dyn_sync_cntrl: dynamic sync control

The dynamic sync control interface uses Android kernel's unique early
suspend / lat resume interface.

While screen is on, file sync is disabled
when screen is off, a file sync is called to flush all outstanding writes
and restore file sync operation as normal.

Signed-off-by: Paul Reioux <reioux@gmail.com>

Conflicts:
	fs/sync.c
fs/dyn_fsync: check dyn fsync control's active prior to performing fsync ops

Signed-off-by: Andrew Bartholomew <andrewb03@gmail.com>
dynamic filesync: add some cache optimizations

and clean up file format and typos

bump version to 1.1

Signed-off-by: Paul Reioux <reioux@gmail.com>
dynamic fsync: favor true case since most will be using this feature

Signed-off-by: Paul Reioux <reioux@gmail.com>
Revert "cpu-hotplug: Add the function 'cpu_hotplug_inprogress'"

This reverts commit f8398b496d2400e67921e5e75496976ba4ef8354.
Revert "printk: Don't allow cpu to get console lock during hotplugging"

This reverts commit 39f044a01c96c74e27cf39558dc93d22516873a2.
Revert "ARM: SMP: use a timing out completion for cpu hotplug"

This reverts commit b5bfe175b05ef1863337baa17a9eceae4a947cb7.
Revert "ARM: smpboot: Enable interrupts after marking CPU online/active"

This reverts commit 17f2b9659631f0becff8c701b6ad11eb8655b302.
fs: push i_mutex and filemap_write_and_wait down into
 ->fsync() handlers

Btrfs needs to be able to control how filemap_write_and_wait_range() is called
in fsync to make it less of a painful operation, so push down taking i_mutex and
the calling of filemap_write_and_wait() down into the ->fsync() handlers.  Some
file systems can drop taking the i_mutex altogether it seems, like ext3 and
ocfs2.  For correctness sake I just pushed everything down in all cases to make
sure that we keep the current behavior the same for everybody, and then each
individual fs maintainer can make up their mind about what to do from there.
Thanks,

Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Conflicts:
	fs/sync.c
Fix build errors caused by commitda15886. Necessary for Dyanmic fsync