summaryrefslogtreecommitdiff
path: root/internal/inomap/inomap.go
diff options
context:
space:
mode:
authorYuta Hayashibe2022-05-04 18:06:20 +0900
committerrfjakob2022-06-26 10:59:06 +0200
commite9ecff7f07aeb1efe0edec7b4b050ce3c0ef75f8 (patch)
tree94d0da7da7c22b65ccfa5cc99cb7e9d5e6322d07 /internal/inomap/inomap.go
parentc9e4e4f74150d2734496e90a4c442a17b79f52c1 (diff)
Fix typos
Diffstat (limited to 'internal/inomap/inomap.go')
-rw-r--r--internal/inomap/inomap.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/inomap/inomap.go b/internal/inomap/inomap.go
index 997ea9b..070fab4 100644
--- a/internal/inomap/inomap.go
+++ b/internal/inomap/inomap.go
@@ -9,7 +9,7 @@
// Each (Dev, Tag) tuple gets a namespace id assigned. The original inode
// number is then passed through in the lower 48 bits.
//
-// If namespace ids are exhaused, or the original id is larger than 48 bits,
+// If namespace ids are exhausted, or the original id is larger than 48 bits,
// the whole (Dev, Tag, Ino) tuple gets mapped in the spill map, and the
// spill bit is set to 1.
package inomap
@@ -114,7 +114,7 @@ func (m *InoMap) Translate(in QIno) (out uint64) {
// TranslateStat translates (device, ino) pair contained in "st" into a unique
// inode number and overwrites the ino in "st" with it.
-// Convience wrapper around Translate().
+// Convenience wrapper around Translate().
func (m *InoMap) TranslateStat(st *syscall.Stat_t) {
in := QInoFromStat(st)
st.Ino = m.Translate(in)