]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: remove stale comments about fs_mutex
authorDavid Sterba <dsterba@suse.com>
Tue, 27 Mar 2018 18:08:28 +0000 (20:08 +0200)
committerDavid Sterba <dsterba@suse.com>
Sat, 31 Mar 2018 00:01:07 +0000 (02:01 +0200)
The fs_mutex has been killed in 2008, a213501153fd66e2 ("Btrfs: Replace
the big fs_mutex with a collection of other locks"), still remembered in
some comments.

We don't have any extra needs for locking in the ACL handlers.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/acl.c

index f8a1bdf06b2ab9bacf4e05d82704405932e9ea58..0066d95b133f8c168039adbda4837102167d9743 100644 (file)
@@ -65,9 +65,6 @@ struct posix_acl *btrfs_get_acl(struct inode *inode, int type)
        return acl;
 }
 
-/*
- * Needs to be called with fs_mutex held
- */
 static int __btrfs_set_acl(struct btrfs_trans_handle *trans,
                         struct inode *inode, struct posix_acl *acl, int type)
 {
@@ -127,11 +124,6 @@ int btrfs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
        return ret;
 }
 
-/*
- * btrfs_init_acl is already generally called under fs_mutex, so the locking
- * stuff has been fixed to work with that.  If the locking stuff changes, we
- * need to re-evaluate the acl locking stuff.
- */
 int btrfs_init_acl(struct btrfs_trans_handle *trans,
                   struct inode *inode, struct inode *dir)
 {