summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r--sys/fs/ext2fs/ext2_alloc.c3
-rwxr-xr-xsys/fs/ext2fs/ext2_dinode.h2
-rwxr-xr-xsys/fs/ext2fs/ext2fs.h6
3 files changed, 5 insertions, 6 deletions
diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c
index 6f24495..af7d700 100644
--- a/sys/fs/ext2fs/ext2_alloc.c
+++ b/sys/fs/ext2fs/ext2_alloc.c
@@ -76,7 +76,6 @@ static daddr_t ext2_mapsearch(struct m_ext2fs *, char *, daddr_t);
* 2) quadradically rehash into other cylinder groups, until an
* available block is located.
*/
-
int
ext2_alloc(ip, lbn, bpref, size, cred, bnp)
struct inode *ip;
@@ -222,7 +221,7 @@ return ENOSPC;
/*
* Find the preferred location for the cluster.
*/
- EXT2_LOCK(ump);
+ EXT2_LOCK(ump);
pref = ext2_blkpref(ip, start_lbn, soff, sbap, blkno);
/*
* If the block range spans two block maps, get the second map.
diff --git a/sys/fs/ext2fs/ext2_dinode.h b/sys/fs/ext2fs/ext2_dinode.h
index 3e45060..405c930 100755
--- a/sys/fs/ext2fs/ext2_dinode.h
+++ b/sys/fs/ext2fs/ext2_dinode.h
@@ -74,5 +74,5 @@ struct ext2fs_dinode {
u_int32_t e2di_linux_reserved3; /* 124 */
};
-#endif /* _FS_EXT2FS_EXT2_DINODE_H_ */
+#endif /* !_FS_EXT2FS_EXT2_DINODE_H_ */
diff --git a/sys/fs/ext2fs/ext2fs.h b/sys/fs/ext2fs/ext2fs.h
index 2efc57f..8bfd29e 100755
--- a/sys/fs/ext2fs/ext2fs.h
+++ b/sys/fs/ext2fs/ext2fs.h
@@ -153,8 +153,8 @@ struct m_ext2fs {
uint32_t e2fs_bshift; /* calc of logical block no */
int32_t e2fs_bmask; /* calc of block offset */
int32_t e2fs_bpg; /* Number of blocks per group */
- int64_t e2fs_qbmask; /* = s_blocksize -1 */
- uint32_t e2fs_fsbtodb; /* Shift to get disk block */
+ int64_t e2fs_qbmask; /* = s_blocksize -1 */
+ uint32_t e2fs_fsbtodb; /* Shift to get disk block */
uint32_t e2fs_ipg; /* Number of inodes per group */
uint32_t e2fs_ipb; /* Number of inodes per block */
uint32_t e2fs_itpg; /* Number of inode table per group */
@@ -326,4 +326,4 @@ struct ext2_gd {
#endif
-#endif /* _LINUX_EXT2_FS_H */
+#endif /* !_FS_EXT2FS_EXT2FS_H */
OpenPOWER on IntegriCloud