btrfs: convert to fileattr

Use the fileattr API to let the VFS handle locking, permission checking and
conversion.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: David Sterba <dsterba@suse.com>
This commit is contained in:
Miklos Szeredi 2021-04-07 14:36:43 +02:00
commit 97fc297754
3 changed files with 41 additions and 192 deletions