diff options
| author | Omar Sandoval <osandov@fb.com> | 2022-03-09 17:31:34 -0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2022-05-16 17:03:06 +0200 |
| commit | 81512e89f2b79a5c965a436dc58fd9f0aeee8690 (patch) | |
| tree | 164198648c53a09de3eba604570d9d831b506b47 /tools/perf/scripts/python/bin | |
| parent | btrfs: fix anon_dev leak in create_subvol() (diff) | |
| download | linux-81512e89f2b79a5c965a436dc58fd9f0aeee8690.tar.gz linux-81512e89f2b79a5c965a436dc58fd9f0aeee8690.zip | |
btrfs: get rid of btrfs_add_nondir()
This is a trivial wrapper around btrfs_add_link(). The only thing it
does other than moving arguments around is translating a > 0 return
value to -EEXIST. As far as I can tell, btrfs_add_link() won't return >
0 (and if it did, the existing callsites in, e.g., btrfs_mkdir() would
be broken). The check itself dates back to commit 2c90e5d65842 ("Btrfs:
still corruption hunting"), so it's probably left over from debugging.
Let's just get rid of btrfs_add_nondir().
Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
