diff options
author | Omar Sandoval <osandov@fb.com> | 2017-01-26 01:06:39 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-01 07:33:06 (GMT) |
commit | ad80fada9d6d8177d1593a9b5772e80a758db595 (patch) | |
tree | b81d253d571ff7fde8dbdbc2b113613caf77c772 /firmware/radeon/RV730_pfp.bin.ihex | |
parent | 79babd4a6ce26d6b0e6a56da47efb723431abc70 (diff) | |
download | linux-ad80fada9d6d8177d1593a9b5772e80a758db595.tar.xz |
Btrfs: disable xattr operations on subvolume directories
commit 1fdf41941b8010691679638f8d0c8d08cfee7726 upstream.
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 <agruenba@redhat.com>
Reported-by: Chris Murphy <lists@colorremedies.com>
Tested-by: Chris Murphy <lists@colorremedies.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware/radeon/RV730_pfp.bin.ihex')
0 files changed, 0 insertions, 0 deletions