diff options
| author | Omar Sandoval <[email protected]> | 2017-01-26 01:06:39 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2017-01-26 23:48:55 +0000 |
| commit | 1fdf41941b8010691679638f8d0c8d08cfee7726 (patch) | |
| tree | a30a3e78422bb68feae6e32ad13db1327bc95a67 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Btrfs: remove old tree_root case in btrfs_read_locked_inode() (diff) | |
| download | kernel-1fdf41941b8010691679638f8d0c8d08cfee7726.tar.gz kernel-1fdf41941b8010691679638f8d0c8d08cfee7726.zip | |
Btrfs: disable xattr operations on subvolume directories
When you snapshot a subvolume containing a subvolume, you get a
placeholder directory where the subvolume would be. These directory
inodes have ->i_ops set to btrfs_dir_ro_inode_operations. Previously,
these i_ops didn't include the xattr operation callbacks. The conversion
to xattr_handlers missed this case, leading to bogus attempts to set
xattrs on these inodes. This manifested itself as failures when running
delayed inodes.
To fix this, clear IOP_XATTR in ->i_opflags on these inodes.
Fixes: 6c6ef9f26e59 ("xattr: Stop calling {get,set,remove}xattr inode operations")
Cc: Andreas Gruenbacher <[email protected]>
Reported-by: Chris Murphy <[email protected]>
Tested-by: Chris Murphy <[email protected]>
Cc: <[email protected]> # 4.9.x
Signed-off-by: Omar Sandoval <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
