Skip to content

Commit 671b9b7

Browse files
saschahauerrichardweinberger
authored andcommitted
ubifs: journal: Remove wrong comment
In the description of reserve_space() it is claimed that write_node() and write_head() unlock the journal head. This is not true and has never been true. All callers of write_node() and write_head() call release_head() themselves. Remove the wrong comment. Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent c971dad commit 671b9b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/ubifs/journal.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ static inline void zero_trun_node_unused(struct ubifs_trun_node *trun)
9898
*
9999
* This function reserves space in journal head @head. If the reservation
100100
* succeeded, the journal head stays locked and later has to be unlocked using
101-
* 'release_head()'. 'write_node()' and 'write_head()' functions also unlock
102-
* it. Returns zero in case of success, %-EAGAIN if commit has to be done, and
103-
* other negative error codes in case of other failures.
101+
* 'release_head()'. Returns zero in case of success, %-EAGAIN if commit has to
102+
* be done, and other negative error codes in case of other failures.
104103
*/
105104
static int reserve_space(struct ubifs_info *c, int jhead, int len)
106105
{

0 commit comments

Comments
 (0)