Commit 514b687
VFS/autofs: try_lookup_one_len() does not need any locks
try_lookup_one_len() is identical to lookup_one_unlocked() except that
it doesn't include the call to lookup_slow(). The latter doesn't need
the inode to be locked, so the former cannot either.
So fix the documentation, remove the WARN_ON and fix the only caller to
not take the lock.
Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/174190517441.9342.5956460781380903128@noble.neil.brown.name
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 6118510 commit 514b687
2 files changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
446 | 445 | | |
447 | 446 | | |
448 | 447 | | |
| |||
460 | 459 | | |
461 | 460 | | |
462 | 461 | | |
463 | | - | |
464 | 462 | | |
465 | | - | |
466 | 463 | | |
467 | 464 | | |
468 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2864 | 2864 | | |
2865 | 2865 | | |
2866 | 2866 | | |
2867 | | - | |
| 2867 | + | |
| 2868 | + | |
2868 | 2869 | | |
2869 | 2870 | | |
2870 | 2871 | | |
2871 | 2872 | | |
2872 | 2873 | | |
2873 | 2874 | | |
2874 | | - | |
2875 | | - | |
2876 | 2875 | | |
2877 | 2876 | | |
2878 | 2877 | | |
| |||
0 commit comments