sys/fs: spelling fixes in comments.
No functional change.
This commit is contained in:
parent
91a25a7d6d
commit
b3a15ddd5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298806
@ -209,7 +209,7 @@ fuse_read_biobackend(struct vnode *vp, struct uio *uio,
|
||||
* buffer based on an EOF condition we need to hold
|
||||
* nfs_rslock() through obtaining the buffer to prevent
|
||||
* a potential writer-appender from messing with n_size.
|
||||
* Otherwise we may accidently truncate the buffer and
|
||||
* Otherwise we may accidentally truncate the buffer and
|
||||
* lose dirty data.
|
||||
*
|
||||
* Note that bcount is *not* DEV_BSIZE aligned.
|
||||
@ -546,7 +546,7 @@ fuse_write_biobackend(struct vnode *vp, struct uio *uio,
|
||||
(on > bp->b_dirtyend || (on + n) < bp->b_dirtyoff)) {
|
||||
/*
|
||||
* Yes, we mean it. Write out everything to "storage"
|
||||
* immediatly, without hesitation. (Apart from other
|
||||
* immediately, without hesitation. (Apart from other
|
||||
* reasons: the only way to know if a write is valid
|
||||
* if its actually written out.)
|
||||
*/
|
||||
|
@ -1027,7 +1027,7 @@ fuse_vnop_lookup(struct vop_lookup_args *ap)
|
||||
* soon as we get those attrs... There is
|
||||
* one bit of info though not given us by
|
||||
* the daemon: whether his response is
|
||||
* authorative or not... His response should
|
||||
* authoritative or not... His response should
|
||||
* be ignored if something is mounted over
|
||||
* the dir in question. But that can be
|
||||
* known only by having the vnode...
|
||||
@ -1774,7 +1774,7 @@ fuse_vnop_getpages(struct vop_getpages_args *ap)
|
||||
|
||||
/*
|
||||
* We use only the kva address for the buffer, but this is extremely
|
||||
* convienient and fast.
|
||||
* convenient and fast.
|
||||
*/
|
||||
bp = getpbuf(&fuse_pbuf_freecnt);
|
||||
|
||||
@ -1835,7 +1835,7 @@ fuse_vnop_getpages(struct vop_getpages_args *ap)
|
||||
("fuse_getpages: page %p is dirty", m));
|
||||
} else {
|
||||
/*
|
||||
* Read operation was short. If no error occured
|
||||
* Read operation was short. If no error occurred
|
||||
* we may have hit a zero-fill section. We simply
|
||||
* leave valid set to 0.
|
||||
*/
|
||||
@ -1908,7 +1908,7 @@ fuse_vnop_putpages(struct vop_putpages_args *ap)
|
||||
}
|
||||
/*
|
||||
* We use only the kva address for the buffer, but this is extremely
|
||||
* convienient and fast.
|
||||
* convenient and fast.
|
||||
*/
|
||||
bp = getpbuf(&fuse_pbuf_freecnt);
|
||||
|
||||
|
@ -759,7 +759,7 @@ winSlotCnt(const u_char *un, size_t unlen, struct msdosfsmount *pmp)
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine the number of bytes neccessary for Win95 names
|
||||
* Determine the number of bytes necessary for Win95 names
|
||||
*/
|
||||
size_t
|
||||
winLenFixup(const u_char *un, size_t unlen)
|
||||
|
@ -175,7 +175,7 @@ pcbmap(struct denode *dep, u_long findcn, daddr_t *bnp, u_long *cnp, int *sp)
|
||||
|
||||
/*
|
||||
* Rummage around in the fat cache, maybe we can avoid tromping
|
||||
* thru every fat entry for the file. And, keep track of how far
|
||||
* through every fat entry for the file. And, keep track of how far
|
||||
* off the cache was from where we wanted to be.
|
||||
*/
|
||||
i = 0;
|
||||
|
@ -924,7 +924,7 @@ readde(struct denode *dep, struct buf **bpp, struct direntry **epp)
|
||||
|
||||
/*
|
||||
* Remove a directory entry. At this point the file represented by the
|
||||
* directory entry to be removed is still full length until noone has it
|
||||
* directory entry to be removed is still full length until no one has it
|
||||
* open. When the file no longer being used msdosfs_inactive() is called
|
||||
* and will truncate the file to 0 length. When the vnode containing the
|
||||
* denode is needed for some other purpose by VFS it will call
|
||||
@ -975,7 +975,7 @@ removede(struct denode *pdep, struct denode *dep)
|
||||
offset += sizeof(struct direntry);
|
||||
while (1) {
|
||||
/*
|
||||
* We are a bit agressive here in that we delete any Win95
|
||||
* We are a bit aggressive here in that we delete any Win95
|
||||
* entries preceding this entry, not just the ones we "own".
|
||||
* Since these presumably aren't valid anyway,
|
||||
* there should be no harm.
|
||||
|
@ -116,7 +116,7 @@ static vop_vptofh_t msdosfs_vptofh;
|
||||
* that when a directory is actually read/written (via read, write, or
|
||||
* readdir, or seek) we must use the vnode for the filesystem instead of
|
||||
* the vnode for the directory as would happen in ufs. This is to insure we
|
||||
* retreive the correct block from the buffer cache since the hash value is
|
||||
* retrieve the correct block from the buffer cache since the hash value is
|
||||
* based upon the vnode address and the desired block number.
|
||||
*/
|
||||
|
||||
|
@ -343,7 +343,7 @@ struct nandfs_segment_summary {
|
||||
/*
|
||||
* Structure of DAT/inode file.
|
||||
*
|
||||
* A DAT file is devided into groups. The maximum number of groups is the
|
||||
* A DAT file is divided into groups. The maximum number of groups is the
|
||||
* number of block group descriptors that fit into one block; this descriptor
|
||||
* only gives the number of free entries in the associated group.
|
||||
*
|
||||
|
@ -114,7 +114,7 @@ int nandfs_free_entry(struct nandfs_mdt *, struct nandfs_alloc_request *);
|
||||
int nandfs_get_entry_block(struct nandfs_mdt *, struct nandfs_node *,
|
||||
struct nandfs_alloc_request *, uint32_t *, int);
|
||||
|
||||
/* inode managment */
|
||||
/* Inode management. */
|
||||
int nandfs_node_create(struct nandfsmount *, struct nandfs_node **, uint16_t);
|
||||
int nandfs_node_destroy(struct nandfs_node *);
|
||||
int nandfs_node_update(struct nandfs_node *);
|
||||
|
@ -137,7 +137,7 @@ nandfs_alloc_segment(struct nandfs_device *fsdev, uint64_t *seg)
|
||||
rest = (fsdev->nd_blocksize - offset) / seg_size;
|
||||
/* Go through all su usage in block */
|
||||
while (rest) {
|
||||
/* When last check start from beggining */
|
||||
/* When last check start from beginning */
|
||||
if (i == nsegments)
|
||||
break;
|
||||
|
||||
|
@ -1251,12 +1251,12 @@ nandfs_readdir(struct vop_readdir_args *ap)
|
||||
diroffset += ndirent->rec_len;
|
||||
blkoff += ndirent->rec_len;
|
||||
|
||||
/* Remember the last entry we transfered */
|
||||
/* Remember the last entry we transferred */
|
||||
transoffset = diroffset;
|
||||
}
|
||||
brelse(bp);
|
||||
|
||||
/* Pass on last transfered offset */
|
||||
/* Pass on last transferred offset */
|
||||
uio->uio_offset = transoffset;
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@
|
||||
* are created as a result of vnode operations on
|
||||
* this or other null vnode stacks.
|
||||
*
|
||||
* New vnode stacks come into existance as a result of
|
||||
* New vnode stacks come into existence as a result of
|
||||
* an operation which returns a vnode.
|
||||
* The bypass routine stacks a null-node above the new
|
||||
* vnode before returning it to the caller.
|
||||
|
@ -520,7 +520,7 @@ smbfs_getpages(ap)
|
||||
("smbfs_getpages: page %p is dirty", m));
|
||||
} else {
|
||||
/*
|
||||
* Read operation was short. If no error occured
|
||||
* Read operation was short. If no error occurred
|
||||
* we may have hit a zero-fill section. We simply
|
||||
* leave valid set to 0.
|
||||
*/
|
||||
|
@ -107,7 +107,7 @@ struct smbfs_fctx {
|
||||
struct smb_t2rq * uf_t2;
|
||||
} f_urq;
|
||||
int f_left; /* entries left */
|
||||
int f_ecnt; /* entries left in the current reponse */
|
||||
int f_ecnt; /* entries left in the current response */
|
||||
int f_eofs; /* entry offset in the parameter block */
|
||||
u_char f_skey[SMB_SKEYLEN]; /* server side search context */
|
||||
u_char f_fname[8 + 1 + 3 + 1]; /* common case for 8.3 filenames */
|
||||
|
@ -840,7 +840,7 @@ tmpfs_rename(struct vop_rename_args *v)
|
||||
/* If re-naming a directory to another preexisting directory
|
||||
* ensure that the target directory is empty so that its
|
||||
* removal causes no side effects.
|
||||
* Kern_rename gurantees the destination to be a directory
|
||||
* Kern_rename guarantees the destination to be a directory
|
||||
* if the source is one. */
|
||||
if (tvp != NULL) {
|
||||
MPASS(tnode != NULL);
|
||||
|
@ -28,7 +28,7 @@
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
* The following two typedef's are to remove compiler dependancies.
|
||||
* The following two typedef's are to remove compiler dependencies.
|
||||
* byte needs to be unsigned 8-bit, and unicode_t needs to be
|
||||
* unsigned 16-bit.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user