Commit 794ebce
namei: Standardize callers of filename_lookup()
filename_lookup() has two variants, one which drops the caller's
reference to filename (filename_lookup), and one which does
not (__filename_lookup). This can be confusing as it's unusual to drop a
caller's reference. Remove filename_lookup, rename __filename_lookup
to filename_lookup, and convert all callers. The cost is a few slightly
longer functions, but the clarity is greater.
[AV: consuming a reference is not at all unusual, actually; look at
e.g. do_mkdirat(), for example. It's more that we want non-consuming
variant for close relative of that function...]
Link: https://lore.kernel.org/linux-fsdevel/YS+dstZ3xfcLxhoB@zeniv-ca.linux.org.uk/
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent c5f563f commit 794ebce
2 files changed
Lines changed: 20 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2467 | 2467 | | |
2468 | 2468 | | |
2469 | 2469 | | |
2470 | | - | |
| 2470 | + | |
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
| |||
2488 | 2488 | | |
2489 | 2489 | | |
2490 | 2490 | | |
2491 | | - | |
2492 | | - | |
2493 | | - | |
2494 | | - | |
2495 | | - | |
2496 | | - | |
2497 | | - | |
2498 | | - | |
2499 | | - | |
2500 | 2491 | | |
2501 | 2492 | | |
2502 | 2493 | | |
| |||
2573 | 2564 | | |
2574 | 2565 | | |
2575 | 2566 | | |
2576 | | - | |
2577 | | - | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
2578 | 2573 | | |
2579 | 2574 | | |
2580 | 2575 | | |
| |||
2590 | 2585 | | |
2591 | 2586 | | |
2592 | 2587 | | |
| 2588 | + | |
2593 | 2589 | | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
2594 | 2593 | | |
2595 | | - | |
2596 | | - | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
2597 | 2597 | | |
2598 | 2598 | | |
2599 | 2599 | | |
| |||
2797 | 2797 | | |
2798 | 2798 | | |
2799 | 2799 | | |
2800 | | - | |
2801 | | - | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
2802 | 2805 | | |
2803 | 2806 | | |
2804 | 2807 | | |
| |||
4425 | 4428 | | |
4426 | 4429 | | |
4427 | 4430 | | |
4428 | | - | |
| 4431 | + | |
4429 | 4432 | | |
4430 | 4433 | | |
4431 | 4434 | | |
| |||
0 commit comments