diff options
| author | Omar Sandoval <osandov@fb.com> | 2022-03-10 04:31:34 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2022-05-16 18:03:06 +0300 |
| commit | 81512e89f2b79a5c965a436dc58fd9f0aeee8690 (patch) | |
| tree | 164198648c53a09de3eba604570d9d831b506b47 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 2256e901f5bddc56e24089c96f27b77da932dfcc (diff) | |
| download | linux-81512e89f2b79a5c965a436dc58fd9f0aeee8690.tar.xz | |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
