Skip to content

Commit

Permalink
Linux 4.9 compat: fix zfs_ctldir xattr handling
Browse files Browse the repository at this point in the history
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.

Signed-off-by: loli10K <[email protected]>
  • Loading branch information
loli10K committed Jun 5, 2017
1 parent 92aceb2 commit e623855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e623855

Please sign in to comment.