Skip to content
Snippets Groups Projects
Commit 0c04c398 authored by Icenowy Zheng's avatar Icenowy Zheng
Browse files

exfat_super: Update for kernel 4.11 compatibility


In Linux kernel 4.11, the prototype of getattr function changed.

Use the new prototype and change inode acquring code, when kernel
version > 4.11.

Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.io>
parent 5c2239b0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1363,9 +1363,16 @@ static int exfat_setattr(struct dentry *dentry, struct iattr *attr)
return error;
}
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
static int exfat_getattr(const struct path *path, struct kstat *stat,
u32 request_mask, unsigned int flags)
{
struct inode *inode = path->dentry->d_inode;
#else
static int exfat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
struct inode *inode = dentry->d_inode;
#endif
 
DPRINTK("exfat_getattr entered\n");
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment