Reason for revert: when block device enable bch proxy, fsync calling would be failed

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
wanggang26 2023-08-25 10:16:09 +08:00 committed by Petro Karashchenko
parent 563125fde3
commit 3dbface167

View File

@ -75,8 +75,7 @@ int file_fsync(FAR struct file *filep)
}
else
#endif
if ((INODE_IS_BLOCK(inode) || INODE_IS_MTD(inode)) &&
inode->u.i_ops && inode->u.i_ops->ioctl)
if (inode->u.i_ops && inode->u.i_ops->ioctl)
{
ret = inode->u.i_ops->ioctl(filep, BIOC_FLUSH, 0);
return ret >= 0 ? 0 : ret;