summaryrefslogtreecommitdiffstats
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2024-11-15 14:11:56 +0100
committerIlya Dryomov <idryomov@gmail.com>2024-11-18 17:34:36 +0100
commit3500000bb13d300e8d7fdf4a1212abdd0de2b5c1 (patch)
treede8a6685a97397ce0a0f82a1eae8ae7b608cecc0 /fs/ceph/dir.c
parentceph: Use strscpy() instead of strcpy() in __get_snap_name() (diff)
downloadlinux-3500000bb13d300e8d7fdf4a1212abdd0de2b5c1.tar.xz
linux-3500000bb13d300e8d7fdf4a1212abdd0de2b5c1.zip
ceph: miscellaneous spelling fixes
Correct spelling here and there as suggested by codespell. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r--fs/ceph/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 952109292d69..0bf388e07a02 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -207,7 +207,7 @@ static int __dcache_readdir(struct file *file, struct dir_context *ctx,
dentry = __dcache_find_get_entry(parent, idx + step,
&cache_ctl);
if (!dentry) {
- /* use linar search */
+ /* use linear search */
idx = 0;
break;
}
@@ -659,7 +659,7 @@ static bool need_reset_readdir(struct ceph_dir_file_info *dfi, loff_t new_pos)
return true;
if (is_hash_order(new_pos)) {
/* no need to reset last_name for a forward seek when
- * dentries are sotred in hash order */
+ * dentries are sorted in hash order */
} else if (dfi->frag != fpos_frag(new_pos)) {
return true;
}