Commit 392e317
filelock: add lease_dispose_list() helper
The lease-handling code paths always know they're disposing of leases,
yet locks_dispose_list() checks flags at runtime to determine whether
to call locks_free_lease() or locks_free_lock().
Split out a dedicated lease_dispose_list() helper for lease code paths.
This makes the type handling explicit and prepares for the upcoming
lease_manager enhancements where lease-specific operations are being
consolidated.
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20251204-dir-deleg-ro-v2-1-22d37f92ce2c@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent ed61378 commit 392e317
1 file changed
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
376 | 385 | | |
377 | 386 | | |
378 | 387 | | |
| |||
1620 | 1629 | | |
1621 | 1630 | | |
1622 | 1631 | | |
1623 | | - | |
| 1632 | + | |
1624 | 1633 | | |
1625 | 1634 | | |
1626 | 1635 | | |
| |||
1643 | 1652 | | |
1644 | 1653 | | |
1645 | 1654 | | |
1646 | | - | |
| 1655 | + | |
1647 | 1656 | | |
1648 | 1657 | | |
1649 | 1658 | | |
| |||
1727 | 1736 | | |
1728 | 1737 | | |
1729 | 1738 | | |
1730 | | - | |
| 1739 | + | |
1731 | 1740 | | |
1732 | 1741 | | |
1733 | 1742 | | |
| |||
1896 | 1905 | | |
1897 | 1906 | | |
1898 | 1907 | | |
1899 | | - | |
| 1908 | + | |
1900 | 1909 | | |
1901 | 1910 | | |
1902 | 1911 | | |
| |||
1932 | 1941 | | |
1933 | 1942 | | |
1934 | 1943 | | |
1935 | | - | |
| 1944 | + | |
1936 | 1945 | | |
1937 | 1946 | | |
1938 | 1947 | | |
| |||
2727 | 2736 | | |
2728 | 2737 | | |
2729 | 2738 | | |
2730 | | - | |
| 2739 | + | |
2731 | 2740 | | |
2732 | 2741 | | |
2733 | 2742 | | |
| |||
0 commit comments