Skip to content

Commit 16a7cbc

Browse files
yarikoptickdave
authored andcommitted
btrfs-progs: run codespell throughout fixing typos automagically
Spell checking can now run in automated mode. === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ Author: Yaroslav Halchenko <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 5b3bb39 commit 16a7cbc

23 files changed

+40
-40
lines changed

CHANGES

+1-1
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ btrfs-progs-4.4 (2016-01-18)
16891689

16901690
Bugfixes:
16911691
* chunk recovery: fix floating point exception
1692-
* chunk recovery: endianity bugfix during rebuild
1692+
* chunk recovery: endianness bugfix during rebuild
16931693
* mkfs with 64K pages and nodesize reported superblock checksum mismatch
16941694
* check: properly reset nlink of multi-linked file
16951695

Documentation/Custom-ioctls.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ a command if available:
2020

2121
- query/set a subset of features on a mounted filesystem
2222

23-
Programming documentaion of the ioctls is in the manual page
23+
Programming documentation of the ioctls is in the manual page
2424
:doc:`btrfs-ioctl`.

Documentation/DocConventions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Manual pages structure:
1818
- subcommands are in alphabetical order
1919

2020
- long command output or shell examples: verbatim output
21-
- use ``..code-block::`` directive with ``bash`` or ``plain`` syntax hilighting
21+
- use ``..code-block::`` directive with ``bash`` or ``plain`` syntax highlighting
2222

2323
Quotes, reference, element formatting:
2424

Documentation/Feature-by-version.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ features see :doc:`Status<Status>` page.
331331
Improved implementation of free space cache (aka v2), using b-trees.
332332

333333
.. note::
334-
Default since btrfs-progs 5.15, Kernel 4.9 fixes endianity bugs on
334+
Default since btrfs-progs 5.15, Kernel 4.9 fixes endianness bugs on
335335
big-endian machines, x86* is ok
336336

337337
4.5 - balance filter updates

Documentation/Kernel-by-version.rst

+16-16
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ Pull requests:
577577
`v5.0-rc3 <https://git.kernel.org/linus/1be969f4682b0aa1995e46fba51502de55f15ce8>`__,
578578
`v5.0-rc5 <https://git.kernel.org/linus/312b3a93dda6db9354b0c6b0f1868c1434e8c787>`__
579579

580-
Features, hilights:
580+
Features, highlights:
581581

582582
- swapfile support (with some limitations)
583583
- metadata uuid - new feature that allows fast uuid change without rewriting all metadata blocks (backward incompatible)
@@ -609,7 +609,7 @@ Pull requests:
609609
`v5.1-rc5 <https://git.kernel.org/linus/2d06b235815e6bd20395f3db9ada786a6f7a876e>`__,
610610
`v5.1-rc7 <https://git.kernel.org/linus/d0473f978e61557464daa8547008fa2cd0c63a17>`__
611611

612-
New features, hilights:
612+
New features, highlights:
613613

614614
- zstd compression levels can be set as mount options
615615
- new ioctl to unregister scanned devices
@@ -634,7 +634,7 @@ Pull requests:
634634
`v5.2-rc5 <https://git.kernel.org/linus/6fa425a2651515f8d262f2c1d972c6632e7c941d>`__,
635635
`v5.2-rc6 <https://git.kernel.org/linus/bed3c0d84e7e25c8e0964d297794f4c215b01f33>`__
636636

637-
User visible changes, hilights:
637+
User visible changes, highlights:
638638

639639
- better read time and write checks to catch errors early and before writing data to disk
640640
- qgroups + metadata relocation: last speed up patch in the series there should
@@ -672,7 +672,7 @@ Pull requests:
672672
`v5.3-rc5 <https://git.kernel.org/linus/3039fadf2bfdc104dc963820c305778c7c1a6229>`__,
673673
`v5.3 <https://git.kernel.org/linus/1b304a1ae45de4df7d773f0a39d1100aabca615b>`__
674674

675-
New features, hilights:
675+
New features, highlights:
676676

677677
- chunks that have been trimmed and unchanged since last mount are tracked and skipped on repeated trims
678678
- use hw assisted crc32c on more arches
@@ -762,7 +762,7 @@ Highlights:
762762
- async discard
763763

764764
- "mount -o discard=async" to enable it
765-
- freed extents are not discarded immediatelly, but grouped together and
765+
- freed extents are not discarded immediately, but grouped together and
766766
trimmed later, with IO rate limiting
767767
- the actual discard IO requests have been moved out of transaction commit
768768
to a worker thread, improving commit latency
@@ -780,7 +780,7 @@ Core changes:
780780
that was confusing
781781
- device closing does not need to allocate memory anymore
782782
- snapshot aware code got removed, disabled for years due to performance
783-
problems, reimplmentation will allow to select wheter defrag breaks or does
783+
problems, reimplementation will allow to select whether defrag breaks or does
784784
not break COW on shared extents
785785
- tree-checker:
786786

@@ -805,14 +805,14 @@ Pull requests:
805805
`v5.7-rc4 <https://git.kernel.org/linus/51184ae37e0518fd90cb437a2fbc953ae558cd0d>`__,
806806
`v5.7-rc4 <https://git.kernel.org/linus/262f7a6b8317a06e7d51befb690f0bca06a473ea>`__
807807

808-
Hilights:
808+
Highlights:
809809

810810
- v2 of ioctl to delete subvolumes, allowing to delete by id and more future extensions
811811
- removal of obsolete ioctl flag BTRFS_SUBVOL_CREATE_ASYNC
812812
- more responsive balance cancel
813813
- speedup of extent back reference resolution
814814
- reflink/clone_range works on inline extents
815-
- lots of othe core changes, see the [https://git.kernel.org/linus/15c981d16d70e8a5be297fa4af07a64ab7e080ed pull request]
815+
- lots of other core changes, see the [https://git.kernel.org/linus/15c981d16d70e8a5be297fa4af07a64ab7e080ed pull request]
816816

817817
5.8 (Aug 2020)
818818
^^^^^^^^^^^^^^
@@ -825,7 +825,7 @@ Pull requests:
825825
`v5.8-rc5 <https://git.kernel.org/linus/72c34e8d7099c329c2934c2ac9c886f638b6edaf>`__,
826826
`v5.8-rc7 <https://git.kernel.org/linus/0669704270e142483d80cfda5c526426c1a89711>`__
827827

828-
Hilights:
828+
Highlights:
829829

830830
- speedup dead root detection during orphan cleanup
831831
- send will emit file capabilities after chown
@@ -850,7 +850,7 @@ Pull requests:
850850
`v5.9-rc7 <https://git.kernel.org/linus/bffac4b5435a07bf26604385ae533adff3cccf23>`__,
851851
`v5.9-rc8 <https://git.kernel.org/linus/4e3b9ce271b4b54d2293a3916d22e4ddc0c89aab>`__
852852

853-
Hilights:
853+
Highlights:
854854

855855
- add mount option ''rescue'' to unify options for various recovery tasks on a mounted filesystems
856856
- mount option ''inode_cache'' is deprecated and will be removed in 5.11
@@ -870,7 +870,7 @@ Pull requests:
870870
`v5.10-rc4 <https://git.kernel.org/linus/e2f0c565ec70eb9e4d3b98deb5892af62de8b98d>`__,
871871
`v5.10-rc6 <https://git.kernel.org/linus/a17a3ca55e96d20e25e8b1a7cd08192ce2bac3cc>`__
872872

873-
Hilights:
873+
Highlights:
874874

875875
- performance improvements in fsync (dbench workload: higher throughput, lower latency)
876876
- sysfs exports current exclusive operataion (balance, resize, device add/del/...)
@@ -999,7 +999,7 @@ Pull requests:
999999
`v5.14-rc7 <https://git.kernel.org/linus/d6d09a6942050f21b065a134169002b4d6b701ef>`__,
10001000
`v5.14 <https://git.kernel.org/linus/9b49ceb8545b8eca68c03388a07ecca7caa5d9c1>`__
10011001

1002-
Hilights:
1002+
Highlights:
10031003

10041004
- new sysfs knob to limit scrub IO bandwidth per device
10051005
- device stats are also available in /sys/fs/btrfs/FSID/devinfo/DEVID/error_stats
@@ -1195,7 +1195,7 @@ Core, fixes:
11951195

11961196
- prevent deleting subvolume with active swapfile
11971197
- remove device count in superblock and its item in one transaction so
1198-
they cant't get out of sync
1198+
they can't get out of sync
11991199
- for subpage, force the free space v2 mount to avoid a warning and
12001200
make it easy to switch a filesystem on different page size systems
12011201
- export sysfs status of exclusive operation 'balance paused', so the
@@ -1390,15 +1390,15 @@ Fixes:
13901390
Fixes:
13911391

13921392
- device delete hang at the end of the operation
1393-
- free space tree bitmap endianity fixed on big-endian machines
1393+
- free space tree bitmap endianness fixed on big-endian machines
13941394
- parallel incremental send and balance issue fixed
13951395
- cloning ioctl can be interrupted by a fatal signal
13961396
- other stability fixes or cleanups
13971397

13981398
4.10 (Feb 2017)
13991399
^^^^^^^^^^^^^^^
14001400

1401-
- balance: human readable block group descripion in the log
1401+
- balance: human readable block group description in the log
14021402
- balance: fix storing of stripes_min, stripes_max filters to the on-disk item
14031403
- qgroup: fix accounting bug during concurrent balance run
14041404
- better worker thread resource limit checks
@@ -1555,7 +1555,7 @@ Internal changes:
15551555
4.19 (Oct 2018)
15561556
^^^^^^^^^^^^^^^
15571557

1558-
Hilights, no big changes in this releaase:
1558+
Highlights, no big changes in this release:
15591559

15601560
- allow defrag on opened read-only files that have rw permissions
15611561
- tree checker improvements, reported by fuzzing

Documentation/btrfs-ioctl.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ BTRFS_IOC_SUBVOL_CREATE_V2
728728
- ignored
729729
* - args.flags
730730
- flags to set on the subvolume, ``BTRFS_SUBVOL_RDONLY`` for readonly,
731-
``BTRFS_SUBVOL_QGROUP_INHERIT`` if the qgroup related fileds should be
731+
``BTRFS_SUBVOL_QGROUP_INHERIT`` if the qgroup related fields should be
732732
processed
733733
* - args.size
734734
- number of entries in ``args.qgroup_inherit``

Documentation/man-preview.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# Generate manual page preview as rendered to a terminal, without colors or
3-
# text attributes, encapsualted html, usable for CI summary
3+
# text attributes, encapsulated html, usable for CI summary
44

55
if ! [ -f "$1" ]; then
66
exit 0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ some architectures. Optionally it's possible to use
164164
[Botan](https://botan.randombit.net) or
165165
[OpenSSL](https://www.openssl.org) implementations.
166166

167-
The builtin implemtations uses the following sources:
167+
The builtin implementations uses the following sources:
168168
[CRC32C](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git),
169169
[XXHASH](https://github.com/Cyan4973/xxHash),
170170
[SHA256](https://tools.ietf.org/html/rfc4634),

ci/images/images-base-update

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# Update all base images from Dockefile
2+
# Update all base images from Dockerfile
33
# Run before: images-build-all
44

55
for dir in ci-*; do

cmds/filesystem.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ static int check_resize_args(const char *amount, const char *path, u64 *devid_re
13311331
goto out;
13321332
} else if (!devstr && devid == 1 && dev_idx < 0) {
13331333
/*
1334-
* No device specified, assuming implicit 1 but it doess not
1334+
* No device specified, assuming implicit 1 but it does not
13351335
* exist. Use minimum device as fallback.
13361336
*/
13371337
warning("no devid specified means devid 1 which does not exist, using\n"

cmds/inspect.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ static int print_list_chunks(struct list_chunks_ctx *ctx, const char *sortmode,
839839
.id = CHUNK_SORT_USAGE
840840
},
841841
{ .name = "length", .comp = (sort_cmp_t)cmp_cse_length,
842-
.desc = "sort by lentgh",
842+
.desc = "sort by length",
843843
.id = CHUNK_SORT_LENGTH
844844
},
845845
SORTDEF_END
@@ -876,7 +876,7 @@ static int print_list_chunks(struct list_chunks_ctx *ctx, const char *sortmode,
876876
ctx->stats[i].pnumber = number++;
877877
}
878878

879-
/* Skip additonal sort if nothing defined by user. */
879+
/* Skip additional sort if nothing defined by user. */
880880
if (comp.count > 0)
881881
qsort_r(ctx->stats, ctx->length, sizeof(ctx->stats[0]),
882882
(sort_r_cmp_t)compare_cmp_multi, &comp);

common/array.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void array_use_capacity(struct array *arr)
8080
arr->length = arr->capacity;
8181
}
8282

83-
/* Append a new element (increas length), extend the array if needed. */
83+
/* Append a new element (increase length), extend the array if needed. */
8484
int array_append(struct array *arr, void *element)
8585
{
8686
if (arr->length == arr->capacity) {

common/send-stream.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static int read_cmd(struct btrfs_send_stream *sctx)
131131
goto out;
132132
}
133133

134-
/* The read_buf does not guarantee any aligmnet for any structures. */
134+
/* The read_buf does not guarantee any alignment for any structures. */
135135
cmd_hdr = (struct btrfs_cmd_header *)sctx->read_buf;
136136
cmd_len = get_unaligned_le32(&cmd_hdr->len);
137137
cmd = get_unaligned_le16(&cmd_hdr->cmd);

common/sort-utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int compare_add_sort_id(struct compare *comp, int id)
9393
*
9494
* Key lookup is case insensitive.
9595
*
96-
* Retrun: id from sortdef if a matching
96+
* Return: id from sortdef if a matching
9797
* -1 on error
9898
* -2 end of buffer
9999
*/

common/sort-utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void test() {
4444
struct entry entries[SIZE];
4545
// Comparator structure
4646
struct compare comp = { 0 };
47-
// Keys, item comparators, help text defitions
47+
// Keys, item comparators, help text definitions
4848
struct sortdef sortit[] = {
4949
{ .name = "id", .comp = (sort_cmp_t)cmp_entry_id,
5050
.desc = "sort by id" },

crypto/crc32c-pcl-intel-asm_64.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ crc_pcl:
191191
xor crc1,crc1
192192
xor crc2,crc2
193193

194-
# Fall thruogh into top of crc array (crc_128)
194+
# Fall through into top of crc array (crc_128)
195195

196196
################################################################
197197
## 3) CRC Array:

inject-error

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ for l in ch_lines:
3232
if not c in found:
3333
found[c] = fn + ":" + line
3434
else:
35-
print(f"ERROR: cookie {c} in {fn}:{line} not uniqe, please fix it first")
35+
print(f"ERROR: cookie {c} in {fn}:{line} not unique, please fix it first")
3636

3737
if len(sys.argv) == 1:
3838
cookie = do_new_cookie()

kernel-shared/volumes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct btrfs_fs_devices {
111111

112112
bool changing_fsid;
113113
bool active_metadata_uuid;
114-
/* Super block data may be temporarily inconsistent (e.g. a differnt fsid). */
114+
/* Super block data may be temporarily inconsistent (e.g. a different fsid). */
115115
bool inconsistent_super;
116116
};
117117

mkfs/rootdir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static int copy_rootdir_inode(struct btrfs_trans_handle *trans,
443443
ret = stat(dir_name, &st);
444444
if (ret < 0) {
445445
ret = -errno;
446-
error("stat failed for direcotry %s: %m", dir_name);
446+
error("stat failed for directory %s: %m", dir_name);
447447
return ret;
448448
}
449449

tests/array-test.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static void test_simple_create()
2525
int i;
2626

2727
array_init(&arr, 0);
28-
printf("Create array with default intial capacity=%u\n", arr.capacity);
28+
printf("Create array with default initial capacity=%u\n", arr.capacity);
2929
array_append(&arr, (void *)0x1);
3030
array_append(&arr, (void *)0x2);
3131
array_append(&arr, (void *)0x3);
@@ -41,7 +41,7 @@ static void test_simple_alloc_elems()
4141
const int count = 1000000;
4242

4343
array_init(&arr, 0);
44-
printf("Create array with default intial capacity=%u\n", arr.capacity);
44+
printf("Create array with default initial capacity=%u\n", arr.capacity);
4545
for (i = 0; i < count; i++) {
4646
char *tmp;
4747
int ret;

tests/build-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# - various configure options
88
#
99
# Arguments:
10-
# - (first arugment) --ccache - enable ccache for build which can speed up
10+
# - (first argument) --ccache - enable ccache for build which can speed up
1111
# rebuilding same files if the options do not affect them, the ccache will
1212
# be created in the toplevel git directory
1313
# - anything else will be passed to 'make', eg. define CC, D, V

tests/check-setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
for dir in *-tests; do
66
missing=
7-
echo "Checking prerequisities for: $dir"
7+
echo "Checking prerequisites for: $dir"
88
for prog in $(find "$dir" -name 'test.sh' -exec grep check_global_prereq '{}' \; | sort -u); do
99
if [ "$prog" = check_global_prereq ]; then
1010
continue

tests/common

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ check_global_prereq()
431431
{
432432
type -p "$1" &> /dev/null
433433
if [ $? -ne 0 ]; then
434-
_fail "Failed system wide prerequisities: $1";
434+
_fail "Failed system wide prerequisites: $1";
435435
fi
436436
}
437437

0 commit comments

Comments
 (0)