diff options
author | LOLi <[email protected]> | 2017-06-05 20:26:25 +0200 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2017-06-09 14:05:15 -0700 |
commit | ed9cb8390bbcac0e43736c1bf0d6ad91dae45642 (patch) | |
tree | f42b047d4e50c1bbbbcac61d5f98d23b93d1b5b3 | |
parent | cb8210d125676c5e84203d8fdb6ce4e588567f31 (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
-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 ebf60408d..2e1aa75fe 100644 --- a/module/zfs/zfs_ctldir.c +++ b/module/zfs/zfs_ctldir.c @@ -499,6 +499,9 @@ zfsctl_inode_alloc(zfs_sb_t *zsb, 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); |