Rev 2683 | Rev 3215 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2683 | Rev 2731 | ||
---|---|---|---|
Line 128... | Line 128... | ||
128 | */ |
128 | */ |
129 | void vfs_file_delref(vfs_file_t *file) |
129 | void vfs_file_delref(vfs_file_t *file) |
130 | { |
130 | { |
131 | if (file->refcnt-- == 1) { |
131 | if (file->refcnt-- == 1) { |
132 | /* |
132 | /* |
133 | * Lost last reference to a file, need to drop our reference |
133 | * Lost the last reference to a file, need to drop our reference |
134 | * to the underlying VFS node. |
134 | * to the underlying VFS node. |
135 | */ |
135 | */ |
136 | vfs_node_delref(file->node); |
136 | vfs_node_delref(file->node); |
137 | free(file); |
137 | free(file); |
138 | } |
138 | } |