Commit 3641155
VFS: Prepare atomic_open() for dentry_create()
The next patch allows dentry_create() to call atomic_open(), but it does
not have fabricated nameidata. Let atomic_open() take a path instead.
Since atomic_open() currently takes a nameidata of which it only uses the
path and the flags, and flags are only used to update open_flags, then the
flag update can happen before calling atomic_open(). Then, only the path
needs be passed to atomic_open() rather than the whole nameidata. This
makes it easier for dentry_create() To call atomic_open().
Signed-off-by: Benjamin Coddington <bcodding@hammerspace.com>
Link: https://patch.msgid.link/e8c1d2ca28de4a972d37e78599502108148fe17d.1764259052.git.bcodding@hammerspace.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 977de00 commit 3641155
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4279 | 4279 | | |
4280 | 4280 | | |
4281 | 4281 | | |
4282 | | - | |
| 4282 | + | |
4283 | 4283 | | |
4284 | 4284 | | |
4285 | 4285 | | |
4286 | 4286 | | |
4287 | | - | |
| 4287 | + | |
4288 | 4288 | | |
4289 | 4289 | | |
4290 | | - | |
4291 | | - | |
4292 | | - | |
4293 | 4290 | | |
4294 | | - | |
| 4291 | + | |
4295 | 4292 | | |
4296 | 4293 | | |
4297 | 4294 | | |
| |||
4403 | 4400 | | |
4404 | 4401 | | |
4405 | 4402 | | |
4406 | | - | |
| 4403 | + | |
| 4404 | + | |
| 4405 | + | |
4407 | 4406 | | |
4408 | 4407 | | |
4409 | 4408 | | |
| |||
0 commit comments