diff options
author | Brian Behlendorf <[email protected]> | 2011-11-09 20:47:59 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-11-10 10:03:08 -0800 |
commit | adcd70bd1af405464d6dbc6b2057594cddda7a24 (patch) | |
tree | 8adac7dcb42c19e1f9cd82f3a1d34af54f565217 /zfs_config.h.in | |
parent | 8c19f5b407132b7ee1d6b7dc7c763f2ae80be976 (diff) |
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 <[email protected]>
Closes #445
Diffstat (limited to 'zfs_config.h.in')
-rw-r--r-- | zfs_config.h.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/zfs_config.h.in b/zfs_config.h.in index 6f18dca54..41d7ab152 100644 --- a/zfs_config.h.in +++ b/zfs_config.h.in @@ -6,9 +6,6 @@ /* bio_end_io_t wants 2 args */ #undef HAVE_2ARGS_BIO_END_IO_T -/* fops->fsync() want 2 args */ -#undef HAVE_2ARGS_FSYNC - /* security_inode_init_security wants 6 args */ #undef HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY @@ -93,6 +90,15 @@ /* kernel defines fmode_t */ #undef HAVE_FMODE_T +/* fops->fsync() with range */ +#undef HAVE_FSYNC_RANGE + +/* fops->fsync() without dentry */ +#undef HAVE_FSYNC_WITHOUT_DENTRY + +/* fops->fsync() with dentry */ +#undef HAVE_FSYNC_WITH_DENTRY + /* blk_disk_ro() is available */ #undef HAVE_GET_DISK_RO |