Revert commit 35602cc2ef
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:
parent
563125fde3
commit
3dbface167
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user