diff options
| author | Zizhi Wo <[email protected]> | 2024-11-07 11:06:47 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-11-11 13:39:38 +0000 |
| commit | 09ecf8f5505465b5527a39dff4b159af62306eee (patch) | |
| tree | 1488750fa31527c2bd65d5f36dd8fdeb6c73782e /fs/cachefiles/interface.c | |
| parent | cachefiles: Fix missing pos updates in cachefiles_ondemand_fd_write_iter() (diff) | |
| download | kernel-09ecf8f5505465b5527a39dff4b159af62306eee.tar.gz kernel-09ecf8f5505465b5527a39dff4b159af62306eee.zip | |
cachefiles: Clean up in cachefiles_commit_tmpfile()
Currently, cachefiles_commit_tmpfile() will only be called if object->flags
is set to CACHEFILES_OBJECT_USING_TMPFILE. Only cachefiles_create_file()
and cachefiles_invalidate_cookie() set this flag. Both of these functions
replace object->file with the new tmpfile, and both are called by
fscache_cookie_state_machine(), so there are no concurrency issues.
So the equation "d_backing_inode(dentry) == file_inode(object->file)" in
cachefiles_commit_tmpfile() will never hold true according to the above
conditions. This patch removes this part of the redundant code and does not
involve any other logical changes.
Signed-off-by: Zizhi Wo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: David Howells <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/cachefiles/interface.c')
0 files changed, 0 insertions, 0 deletions
