Commit 134796f
vfs: break parent dir delegations in open(..., O_CREAT) codepath
In order to add directory delegation support, we need to break
delegations on the parent whenever there is going to be a change in the
directory.
Add a delegated_inode parameter to lookup_open and have it break the
delegation. Then, open_last_lookups can wait for the delegation break
and retry the call to lookup_open once it's done.
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20251111-dir-deleg-ro-v6-8-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 4fa7631 commit 134796f
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3697 | 3697 | | |
3698 | 3698 | | |
3699 | 3699 | | |
3700 | | - | |
| 3700 | + | |
3701 | 3701 | | |
3702 | 3702 | | |
3703 | 3703 | | |
| |||
3786 | 3786 | | |
3787 | 3787 | | |
3788 | 3788 | | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
3789 | 3794 | | |
3790 | 3795 | | |
3791 | 3796 | | |
| |||
3848 | 3853 | | |
3849 | 3854 | | |
3850 | 3855 | | |
| 3856 | + | |
3851 | 3857 | | |
3852 | 3858 | | |
3853 | 3859 | | |
| |||
3879 | 3885 | | |
3880 | 3886 | | |
3881 | 3887 | | |
3882 | | - | |
| 3888 | + | |
3883 | 3889 | | |
3884 | 3890 | | |
3885 | 3891 | | |
| |||
3892 | 3898 | | |
3893 | 3899 | | |
3894 | 3900 | | |
3895 | | - | |
| 3901 | + | |
3896 | 3902 | | |
3897 | 3903 | | |
3898 | 3904 | | |
| |||
3907 | 3913 | | |
3908 | 3914 | | |
3909 | 3915 | | |
3910 | | - | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
3911 | 3924 | | |
| 3925 | + | |
3912 | 3926 | | |
3913 | 3927 | | |
3914 | 3928 | | |
| |||
0 commit comments