Skip to content

Commit 7a8884f

Browse files
Zhihao Chengrichardweinberger
authored andcommitted
ubifs: Fix wrong number of inodes locked by ui_mutex in ubifs_inode comment
Since 9ec6496("ubifs: Implement RENAME_EXCHANGE") and 9e0a1ff("ubifs: Implement RENAME_WHITEOUT") are applied, ubifs_rename locks and changes 4 ubifs inodes, correct the comment for ui_mutex in ubifs_inode. Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent afd4270 commit 7a8884f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ubifs/ubifs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ struct ubifs_gced_idx_leb {
381381
* @ui_mutex exists for two main reasons. At first it prevents inodes from
382382
* being written back while UBIFS changing them, being in the middle of an VFS
383383
* operation. This way UBIFS makes sure the inode fields are consistent. For
384-
* example, in 'ubifs_rename()' we change 3 inodes simultaneously, and
384+
* example, in 'ubifs_rename()' we change 4 inodes simultaneously, and
385385
* write-back must not write any of them before we have finished.
386386
*
387387
* The second reason is budgeting - UBIFS has to budget all operations. If an

0 commit comments

Comments
 (0)