Wait for outstanding dio requests to finish
void inode_dio_wait(struct inode * inode);
inode
inode to wait for
Waits for all pending direct I/O requests to finish so that we can proceed with a truncate or equivalent operation.
Must be called under a lock that serializes taking new references to i_dio_count, usually by inode->i_mutex.