aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2002-08-15 03:50:06 +0000
committerScott Long <scottl@FreeBSD.org>2002-08-15 03:50:06 +0000
commit4576293d3e02d4baeb2236bb56441e12c18d3786 (patch)
tree430f74ff73ba54fc6222f99db403f7a3281e98b1 /sys/fs
parenteabdfedb1e9ca4786fb8221eb5c7d789943b7996 (diff)
downloadsrc-4576293d3e02d4baeb2236bb56441e12c18d3786.tar.gz
src-4576293d3e02d4baeb2236bb56441e12c18d3786.zip
Clean up comments that are no longer relevant.
Notes
Notes: svn path=/head/; revision=101895
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/udf/udf_vnops.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index 6f364c2946df..0db8f9f197a3 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -93,7 +93,7 @@ VNODEOP_SET(udf_vnodeop_opv_desc);
MALLOC_DEFINE(M_UDFFID, "UDF FID", "UDF FileId structure");
MALLOC_DEFINE(M_UDFDS, "UDF DS", "UDF Dirstream structure");
-#define INVALID_BMAP -1
+#define UDF_INVALID_BMAP -1
/* Look up a udf_node based on the ino_t passed in and return it's vnode */
int
@@ -567,7 +567,10 @@ udf_getfid(struct udf_dirstream *ds)
}
}
- /* XXX Is this the right place for this? */
+ /*
+ * Clean up from a previous fragmented FID.
+ * XXX Is this the right place for this?
+ */
if (ds->fid_fragment && ds->buf != NULL) {
ds->fid_fragment = 0;
FREE(ds->buf, M_UDFFID);
@@ -644,7 +647,7 @@ udf_getfid(struct udf_dirstream *ds)
/*
* Update the offset. Align on a 4 byte boundary because the
- * UDF spec says so. If it was a fragmented entry, clean up.
+ * UDF spec says so.
*/
ds->this_off = ds->off;
if (!ds->fid_fragment) {
@@ -715,9 +718,7 @@ udf_readdir(struct vop_readdir_args *a)
/*
* Iterate through the file id descriptors. Give the parent dir
- * entry special attention. size will be the size of the extent
- * returned in data. If there is more than one extent, things get
- * ugly.
+ * entry special attention.
*/
ds = udf_opendir(node, uio->uio_offset, node->fentry->inf_len,
node->udfmp);
@@ -918,10 +919,6 @@ udf_lookup(struct vop_cachedlookup_args *a)
nchstats.ncs_2passes++;
}
- /*
- * The name lookup algorithm is quite similar to what is in readdir.
- * Can this be broken out and shared?
- */
lookloop:
ds = udf_opendir(node, offset, fsize, udfmp);
@@ -1057,7 +1054,7 @@ udf_readatoffset(struct udf_node *node, int *size, int offset, struct buf **bp,
udfmp = node->udfmp;
error = udf_bmap_internal(node, offset, &sector, &max_size);
- if (error == INVALID_BMAP) {
+ if (error == UDF_INVALID_BMAP) {
/*
* This error means that the file *data* is stored in the
* allocation descriptor field of the file entry.
@@ -1176,7 +1173,7 @@ udf_bmap_internal(struct udf_node *node, uint32_t offset, daddr_t *sector, uint3
*max_size = 0;
*sector = node->hash_id + udfmp->part_start;
- return (INVALID_BMAP);
+ return (UDF_INVALID_BMAP);
case 2:
/* DirectCD does not use extended_ad's */
default: