1891 /*
1892 * inode_dio_done - signal finish of a direct I/O requests
1893 * @inode: inode the direct I/O happens on
1894 *
1895 * This is called once we've finished processing a direct I/O request,
1896 * and is used to wake up callers waiting for direct I/O to be quiesced.
1897 */
1898 void inode_dio_done(struct inode *inode)
1899 {
1900 if (atomic_dec_and_test(&inode->i_dio_count))
1901 wake_up_bit(&inode->i_state, __I_DIO_WAKEUP);
1902 }
1903 EXPORT_SYMBOL(inode_dio_done);
1904