diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-02-10 04:57:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-02-10 04:57:08 +0000 |
commit | c00ccc43a6846ce1fad29eb325222de03681c2d8 (patch) | |
tree | c142ab68fca83a74b13e92b0db2c909985f872ca /sys/ufs | |
parent | ce1e1df4d141847e152fc098c779d790555bc852 (diff) | |
download | FreeBSD-src-c00ccc43a6846ce1fad29eb325222de03681c2d8.zip FreeBSD-src-c00ccc43a6846ce1fad29eb325222de03681c2d8.tar.gz |
Minor style tweaks.
Remove an unneeded comment and commented out code that won't be
needed.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index 6b8ff00..09645a1 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -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)) @@ -77,24 +77,26 @@ SYSCTL_INT(_debug, OID_AUTO, ufs_extattr_sync, CTLFLAG_RW, &ufs_extattr_sync, 0, ""); static int ufs_extattr_valid_attrname(int attrnamespace, - const char *attrname); + const char *attrname); static int ufs_extattr_credcheck(struct vnode *vp, - struct ufs_extattr_list_entry *uele, struct ucred *cred, - struct thread *td, int access); + struct ufs_extattr_list_entry *uele, struct ucred *cred, + struct thread *td, int access); static int ufs_extattr_enable_with_open(struct ufsmount *ump, - struct vnode *vp, int attrnamespace, const char *attrname, - struct thread *td); + 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); + 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); + const char *name, struct ucred *cred, struct thread *td); /* * Per-FS attribute lock protecting attribute operations. @@ -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, |