]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove unnecessary comments in ext4_orphan_add()
authorLukas Czerner <lczerner@redhat.com>
Mon, 11 Jul 2011 22:47:04 +0000 (18:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Jul 2011 22:47:04 +0000 (18:47 -0400)
commit7d2099746db4a58b099afa72e57e6156b6a3f6be
tree04fd42200679f1e74e0b310e716babb2f267b61b
parent2dedad5f214b4ffa40dc1f29a5a4c4d487a7e259
ext4: remove unnecessary comments in ext4_orphan_add()

The comment from Al Viro about possible race in the ext4_orphan_add() is
not justified. There is no race possible as we always have either i_mutex
locked, or the inode can not be referenced from outside hence the
J_ASSERS should not be hit from the reason described in comment.

This commit replaces it with notion that we are holding i_mutex so it
should not be possible for i_nlink to be changed while waiting for
s_orphan_lock.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c