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)
commitca6f79f6ba98479ce794fedd0c07ec981fd341ed
tree35ec57fcbcd85d5e0e6d87e1fec929fc2f97f89f
parentc295074400362bb888bcb6fed4226119aaa7578d
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
This page took 0.024194 seconds and 5 git commands to generate.