Rev 2684 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2684 | Rev 2687 | ||
---|---|---|---|
Line 127... | Line 127... | ||
127 | /* |
127 | /* |
128 | * Unlock the VFS node. |
128 | * Unlock the VFS node. |
129 | */ |
129 | */ |
130 | if (read) |
130 | if (read) |
131 | rwlock_reader_unlock(&file->node->contents_rwlock); |
131 | rwlock_reader_unlock(&file->node->contents_rwlock); |
132 | else |
132 | else { |
- | 133 | /* Update the cached version of node's size. */ |
|
- | 134 | file->node->size = IPC_GET_ARG2(answer); |
|
133 | rwlock_writer_unlock(&file->node->contents_rwlock); |
135 | rwlock_writer_unlock(&file->node->contents_rwlock); |
- | 136 | } |
|
134 | 137 | ||
135 | /* |
138 | /* |
136 | * Update the position pointer and unlock the open file. |
139 | * Update the position pointer and unlock the open file. |
137 | */ |
140 | */ |
138 | file->pos += bytes; |
141 | file->pos += bytes; |