diff options
author | LOLi <[email protected]> | 2017-06-05 20:26:25 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-06-05 11:26:25 -0700 |
commit | 9f7b066bd901128f0a5e481e3c23ae9857b1263e (patch) | |
tree | 7bc101aa60503be2115f8cc0699d0b1c06aface3 /module/zfs | |
parent | 099700d9dff46309cdd16f4c4331daddb70d8570 (diff) |
Linux 4.9 compat: fix zfs_ctldir xattr handling
Since torvalds/linux@d0a5b99 IOP_XATTR is used to indicate the inode
has xattr support: clear it for the ctldir inodes to avoid EIO errors.
Reviewed-by: Chunwei Chen <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #6189
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zfs_ctldir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/zfs_ctldir.c b/module/zfs/zfs_ctldir.c index 0c90532c1..3b5fb196f 100644 --- a/module/zfs/zfs_ctldir.c +++ b/module/zfs/zfs_ctldir.c @@ -492,6 +492,9 @@ zfsctl_inode_alloc(zfsvfs_t *zfsvfs, uint64_t id, ip->i_ctime = now; ip->i_fop = fops; ip->i_op = ops; +#if defined(IOP_XATTR) + ip->i_opflags &= ~IOP_XATTR; +#endif if (insert_inode_locked(ip)) { unlock_new_inode(ip); |