From: Filipe Manana Date: Thu, 2 Dec 2021 10:30:40 +0000 (+0000) Subject: btrfs: remove stale comment about locking at btrfs_search_slot() X-Git-Tag: v5.17-rc1~133^2~42 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=727e60604f6a61b8e4330e8fe63a8cf0a067d29d;p=tomoyo%2Ftomoyo-test1.git btrfs: remove stale comment about locking at btrfs_search_slot() The comment refers to the old extent buffer locking code, where we used to have custom locks that had blocking and spinning behaviour modes. That is not the case anymore, since we have transitioned to rw semaphores, so the comment does not offer any value anymore. Remove it. Reviewed-by: Josef Bacik Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 36fc76678e30..defc494a2d08 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -1964,10 +1964,6 @@ again: } cow_done: p->nodes[level] = b; - /* - * Leave path with blocking locks to avoid massive - * lock context switch, this is made on purpose. - */ /* * we have a lock on b and as long as we aren't changing