]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel-setattr-prepare.m4
Linux 4.9 compat: inode_change_ok() renamed setattr_prepare()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 18 Oct 2016 23:49:23 +0000 (23:49 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Oct 2016 16:39:09 +0000 (09:39 -0700)
commit3b0ba3ba99b8a3af0fb532bf264629436b1abd84
tree962afba9779cd11c14a3b89b1586af74af9b6cbc
parent0fedeedd309eca62d15fffd8bd811e2b12660e21
Linux 4.9 compat: inode_change_ok() renamed setattr_prepare()

In torvalds/linux@31051c8 the inode_change_ok() function was
renamed setattr_prepare() and updated to take a dentry ratheri
than an inode.  Update the code to call the setattr_prepare()
and add a wrapper function which call inode_change_ok() for
older kernels.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Requires-spl: refs/pull/581/head
config/kernel-setattr-prepare.m4 [new file with mode: 0644]
config/kernel.m4
include/linux/vfs_compat.h
module/zfs/zpl_inode.c