File 0001-Linux-4.1.37-have-setattr_prepare.patch of Package exfat-kmp

From 5f22ade0fed80b76da190f019792b8c0fc490efd Mon Sep 17 00:00:00 2001
From: Led <ledest@gmail.com>
Date: Wed, 4 Jan 2017 02:06:20 +0200
Subject: [PATCH 1/2] Linux 4.1.37 have setattr_prepare()

---
 exfat_super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exfat_super.c b/exfat_super.c
index fab9430..7e4c301 100644
--- a/exfat_super.c
+++ b/exfat_super.c
@@ -1304,7 +1304,7 @@ static int exfat_setattr(struct dentry *dentry, struct iattr *attr)
 		attr->ia_valid &= ~(ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET);
 	}
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0) || LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,37) && LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
 	error = setattr_prepare(dentry, attr);
 #else
 	error = inode_change_ok(inode, attr);
-- 
2.11.0