Commit 1e7ab6f
committed
anon_inode: rework assertions
Making anonymous inodes regular files comes with a lot of risk and
regression potential as evidenced by a recent hickup in io_uring. We're
better of continuing to not have them be regular files. Since we have
S_ANON_INODE we can port all of our assertions easily.
Link: https://lore.kernel.org/[email protected]
Fixes: cfd86ef ("anon_inode: use a proper mode internally")
Acked-by: Jens Axboe <[email protected]>
Cc: [email protected]
Reported-by: Jens Axboe <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>1 parent d5cb81b commit 1e7ab6f
3 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
781 | 784 | | |
782 | 785 | | |
783 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
784 | 790 | | |
785 | 791 | | |
786 | 792 | | |
787 | 793 | | |
788 | 794 | | |
789 | | - | |
790 | | - | |
| 795 | + | |
791 | 796 | | |
792 | 797 | | |
793 | 798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
| 1652 | + | |
| 1653 | + | |
1656 | 1654 | | |
1657 | | - | |
| 1655 | + | |
1658 | 1656 | | |
1659 | 1657 | | |
1660 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3471 | 3471 | | |
3472 | 3472 | | |
3473 | 3473 | | |
3474 | | - | |
| 3474 | + | |
3475 | 3475 | | |
3476 | 3476 | | |
3477 | 3477 | | |
| |||
0 commit comments