Btrfs: remove ->{get, set}_acl() from btrfs_dir_ro_inode_operations
authorOmar Sandoval <osandov@fb.com>
Thu, 26 Jan 2017 01:06:40 +0000 (17:06 -0800)
committerChris Mason <clm@fb.com>
Thu, 26 Jan 2017 23:48:56 +0000 (15:48 -0800)
Subvolume directory inodes can't have ACLs.

Cc: <stable@vger.kernel.org> # 4.9.x
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c

index 16694325a4494c8093f0932e9115321dce6dc211..8a8e719778bdd7e3f97bcd8de36f30867037036c 100644 (file)
@@ -10592,8 +10592,6 @@ static const struct inode_operations btrfs_dir_inode_operations = {
 static const struct inode_operations btrfs_dir_ro_inode_operations = {
        .lookup         = btrfs_lookup,
        .permission     = btrfs_permission,
-       .get_acl        = btrfs_get_acl,
-       .set_acl        = btrfs_set_acl,
        .update_time    = btrfs_update_time,
 };