diff options
Diffstat (limited to 'fs/ext4/fsync.c')
-rw-r--r-- | fs/ext4/fsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c index 4359a4d30069..2a1dcea4f12e 100644 --- a/fs/ext4/fsync.c +++ b/fs/ext4/fsync.c | |||
@@ -225,7 +225,7 @@ int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync) | |||
225 | 225 | ||
226 | if (!journal) { | 226 | if (!journal) { |
227 | ret = __sync_inode(inode, datasync); | 227 | ret = __sync_inode(inode, datasync); |
228 | if (!ret && !list_empty(&inode->i_dentry)) | 228 | if (!ret && !hlist_empty(&inode->i_dentry)) |
229 | ret = ext4_sync_parent(inode); | 229 | ret = ext4_sync_parent(inode); |
230 | goto out; | 230 | goto out; |
231 | } | 231 | } |