Minor style tweaks.

Remove an unneeded comment and commented out code that won't be
needed.
This commit is contained in:
rwatson 2002-02-10 04:57:08 +00:00
parent d7898458ba
commit 0a5d748403

View File

@ -41,6 +41,8 @@
* Support for file system extended attribute: UFS-specific support functions.
*/
#include "opt_ufs.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@ -64,8 +66,6 @@
#include <ufs/ufs/inode.h>
#include <ufs/ufs/ufs_extern.h>
#include "opt_ufs.h"
#ifdef UFS_EXTATTR
#define MIN(a,b) (((a)<(b))?(a):(b))
@ -85,14 +85,16 @@ static int ufs_extattr_enable_with_open(struct ufsmount *ump,
struct vnode *vp, int attrnamespace, const char *attrname,
struct thread *td);
static int ufs_extattr_enable(struct ufsmount *ump, int attrnamespace,
const char *attrname, struct vnode *backing_vnode, struct thread *td);
const char *attrname, struct vnode *backing_vnode,
struct thread *td);
static int ufs_extattr_disable(struct ufsmount *ump, int attrnamespace,
const char *attrname, struct thread *td);
static int ufs_extattr_get(struct vnode *vp, int attrnamespace,
const char *name, struct uio *uio, size_t *size, struct ucred *cred,
struct thread *td);
const char *name, struct uio *uio, size_t *size,
struct ucred *cred, struct thread *td);
static int ufs_extattr_set(struct vnode *vp, int attrnamespace,
const char *name, struct uio *uio, struct ucred *cred, struct thread *td);
const char *name, struct uio *uio, struct ucred *cred,
struct thread *td);
static int ufs_extattr_rm(struct vnode *vp, int attrnamespace,
const char *name, struct ucred *cred, struct thread *td);
@ -432,12 +434,6 @@ ufs_extattr_iterate_directory(struct ufsmount *ump, struct vnode *dvp,
} else if (attr_vp == dvp) {
vrele(attr_vp);
} else if (attr_vp->v_type != VREG) {
/*
* Eventually, this will be uncommented, but in the mean time, the ".."
* entry causes unnecessary console warnings.
printf("ufs_extattr_iterate_directory: "
"%s not VREG\n", dp->d_name);
*/
vput(attr_vp);
} else {
error = ufs_extattr_enable_with_open(ump,