|
[NFS][BUG][已解决]因为inode_dio_done缺失导致的编译问题
发表于 2016-8-23 10:55:50
浏览:6377
|
回复:1
打印
只看该作者
[复制链接]
楼主
Dear Pals,
kernel/fs/inode.c中缺少了inode_dio_done函数,
导致kernel打开了NFS的config以后会build fail,
手动加上如下函数和声明,即可编译通过:
kernel/fs/inode.c:
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
kernel/include/linux/fs.h:
2449 void inode_dio_done(struct inode *inode);
请firefly团队检查是否因为移植导致的代码丢失 |
|