diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-06-22 08:41:43 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-06-22 08:41:43 +0000 |
commit | 3b6d96526388c71176bb69ee0ee30fa3e4332626 (patch) | |
tree | c8262a3d430fc3cafab7fb6aec641ce293cd3361 /sys/sys/file.h | |
parent | 93cdc37dbf51fed3530a523d5d03743c13dab5b5 (diff) | |
download | src-3b6d96526388c71176bb69ee0ee30fa3e4332626.tar.gz src-3b6d96526388c71176bb69ee0ee30fa3e4332626.zip |
Add a f_vnode field to struct file.
Several of the subtypes have an associated vnode which is used for
stuff like the f*() functions.
By giving the vnode a speparate field, a number of checks for the specific
subtype can be replaced simply with a check for f_vnode != NULL, and
we can later free f_data up to subtype specific use.
At this point in time, f_data still points to the vnode, so any code I
might have overlooked will still work.
Notes
Notes:
svn path=/head/; revision=116678
Diffstat (limited to 'sys/sys/file.h')
-rw-r--r-- | sys/sys/file.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h index 71170bd1274e..0b71ab6e93ab 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -116,6 +116,7 @@ struct file { struct fileops *f_ops; /* File operations */ struct ucred *f_cred; /* credentials associated with descriptor */ int f_count; /* (f) reference count */ + struct vnode *f_vnode; /* NULL or applicable vnode */ /* DFLAG_SEEKABLE specific fields */ off_t f_offset; |