ext4: cleanup ext4_sync_parent()
authorJan Kara <jack@suse.cz>
Tue, 6 Sep 2016 03:21:43 +0000 (23:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Sep 2016 03:21:43 +0000 (23:21 -0400)
commit6ae4c5a69877e5afb6ce63f7d82432133934073a
tree35ec57fcbcd85d5e0e6d87e1fec929fc2f97f89f
parent0b7b77791cc1d99cbca08d5bc8210e57e6165612
ext4: cleanup ext4_sync_parent()

A condition !hlist_empty(&inode->i_dentry) is always true for open file.
Just remove it. Also ext4_sync_parent() could use some explanation why
races with rmdir() are not an issue - add a comment explaining that.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fsync.c