[PATCH] tmpfs: fix typos.

gfleury <[email protected]>
Newsgroups gmane.os.hurd.bugs
Message-ID <[email protected]>
In adjust_used, get_used functions use tmpfs_space_used instead of num_files
---
 tmpfs/tmpfs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tmpfs/tmpfs.h b/tmpfs/tmpfs.h
index 4055455..aed13e8 100644
--- a/tmpfs/tmpfs.h
+++ b/tmpfs/tmpfs.h
@@ -80,14 +80,14 @@ extern off_t tmpfs_space_used;
 static inline void
 adjust_used (off_t change)
 {
-  __atomic_add_fetch (&num_files, change, __ATOMIC_RELAXED);
+  __atomic_add_fetch (&tmpfs_space_used, change, __ATOMIC_RELAXED);
 }
 
 /* Convenience function to get tmpfs_space_used.  */
 static inline off_t
 get_used (void)
 {
-  return __atomic_load_n (&num_files, __ATOMIC_RELAXED);
+  return __atomic_load_n (&tmpfs_space_used, __ATOMIC_RELAXED);
 }
 
 #endif
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.