Skip to content

Refine simplefs_sb_info to align with cacheline #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions simplefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ struct simplefs_sb_info {
uint32_t nr_free_inodes; /* Number of free inodes */
uint32_t nr_free_blocks; /* Number of free blocks */

unsigned long *ifree_bitmap; /* In-memory free inodes bitmap */
unsigned long *bfree_bitmap; /* In-memory free blocks bitmap */
#ifdef __KERNEL__
journal_t *journal;
struct block_device *s_journal_bdev; /* v5.10+ external journal device */
Expand All @@ -150,10 +152,8 @@ struct simplefs_sb_info {
#elif SIMPLEFS_AT_LEAST(6, 7, 0)
struct bdev_handle
*s_journal_bdev_handle; /* v6.7+ external journal device */
#endif
unsigned long *ifree_bitmap; /* In-memory free inodes bitmap */
unsigned long *bfree_bitmap; /* In-memory free blocks bitmap */
#endif
#endif /* SIMPLEFS_AT_LEAST */
#endif /* __KERNEL__ */
};

#endif /* SIMPLEFS_H */