Linux 3.1 compat, fops->fsync()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Nov 2011 04:47:59 +0000 (20:47 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Nov 2011 18:03:08 +0000 (10:03 -0800)
commitadcd70bd1af405464d6dbc6b2057594cddda7a24
tree8adac7dcb42c19e1f9cd82f3a1d34af54f565217
parent8c19f5b407132b7ee1d6b7dc7c763f2ae80be976
Linux 3.1 compat, fops->fsync()

The Linux 3.1 kernel updated the fops->fsync() callback yet again.
They now pass the requested range and delegate the responsibility
for calling filemap_write_and_wait_range() to the callback.  In
addition imutex is no longer held by the caller and the callback
is responsible for taking the lock if required.

This commit updates the code to provide a zpl_fsync() function
for the updated API.  Implementations for the previous two APIs
are also maintained for compatibility.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #445
config/kernel-fsync.m4
config/kernel.m4
configure
module/zfs/zpl_file.c
zfs_config.h.in