Skip to content

Commit

Permalink
os/fs: Fix spelling/grammatical mistakes
Browse files Browse the repository at this point in the history
- Fix spelling mistakes at a few places.
- Update comment indentation for better grammatical understanding.

Signed-off-by: Amogh Hassija <[email protected]>
  • Loading branch information
amogh-samsung authored and sunghan-chang committed Aug 30, 2022
1 parent bca7d1a commit f8f776d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions os/fs/driver/mtd/smart.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ struct smart_journal_entry_s {
uint8_t crc16[2]; /* CRC-16 for current journal data */
uint8_t psector[2]; /* Target Physical Sector, For MTD_ERASE, Target Physical Block */
uint8_t seq[2]; /* Sequence number of Journal for validation check */
uint8_t status; /* Journal Staus low 4bits for state, high 4bits for type */
uint8_t status; /* Journal Status low 4bits for state, high 4bits for type */
};

typedef struct smart_journal_entry_s journal_log_t;
Expand Down Expand Up @@ -932,9 +932,9 @@ static ssize_t smart_write(FAR struct inode *inode, FAR const unsigned char *buf

/* I think maybe we need to lock on a mutex here. */

/* Get the aligned block. Here is is assumed: (1) The number of R/W blocks
* per erase block is a power of 2, and (2) the erase begins with that same
* alignment.
/* Get the aligned block. Here it is assumed that:
* (1) The number of R/W blocks per erase block is a power of 2, and
* (2) the erase begins with that same alignment.
*/

mask = dev->sectorsPerBlk - 1;
Expand Down
2 changes: 1 addition & 1 deletion os/fs/smartfs/smartfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
#define INODE_STATE_FILE (CONFIG_NXFFS_ERASEDSTATE ^ 0x22)
#define INODE_STATE_DELETED (CONFIG_NXFFS_ERASEDSTATE ^ 0xaa)

/* Smartfs worbuffer maxuimum length */
/* Smartfs workbuffer maximum length */

#define SMARTFS_MAX_WORKBUFFER_LEN 256

Expand Down
4 changes: 2 additions & 2 deletions os/fs/smartfs/smartfs_smart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ static int smartfs_bind(FAR struct inode *blkdriver, const void *data, void **ha
}

/* If the global semaphore hasn't been initialized, then
* initialized it now. */
* initialize it now. */

fs->fs_sem = &g_sem;
if (!g_seminitialized) {
Expand All @@ -1259,7 +1259,7 @@ static int smartfs_bind(FAR struct inode *blkdriver, const void *data, void **ha
}

/* Initialize the allocated mountpt state structure. The filesystem is
* responsible for one reference ont the blkdriver inode and does not
* responsible for one reference on the blkdriver inode and does not
* have to addref() here (but does have to release in ubind().
*/

Expand Down
2 changes: 1 addition & 1 deletion os/fs/smartfs/smartfs_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ int smartfs_writeentry(struct smartfs_mountpt_s *fs, struct smartfs_entry_s new_

if (new_entry.prev_parent != new_entry.dsector) {

/* Chain the next sector into this sector sector */
/* Chain the next sector into this sector */
nextsector = new_entry.dsector;

smartfs_setbuffer(&readwrite, new_entry.prev_parent, offsetof(struct smartfs_chain_header_s, nextsector), sizeof(uint16_t), (uint8_t *)&nextsector);
Expand Down

0 comments on commit f8f776d

Please sign in to comment.