diff options
| author | NeilBrown <neil@brown.name> | 2025-07-16 03:44:19 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-07-18 12:10:41 +0300 |
| commit | 76342c9eb8e28f2e421ec7fb72bb2b9aa4d7dd77 (patch) | |
| tree | 9c3ea78508ed1db19cb54e42b7563931e16832f8 /scripts/gdb/linux/proc.py | |
| parent | e460bc4d012ce144376264609309b14b84b693ff (diff) | |
| download | linux-76342c9eb8e28f2e421ec7fb72bb2b9aa4d7dd77.tar.xz | |
ovl: simplify gotos in ovl_rename()
Rather than having three separate goto label: out_unlock, out_dput_old,
and out_dput, make use of that fact that dput() happily accepts a NULL
pointer to reduce this to just one goto label: out_unlock.
olddentry and newdentry are initialised to NULL and only set once a
value dentry is found. They are then dput() late in the function.
Suggested-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-9-neil@brown.name
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions
