Firefly开源社区

标题: [NFS][BUG][已解决]因为inode_dio_done缺失导致的编译问题 [打印本页]

作者: onlyyoulk    时间: 2016-8-23 10:55
标题: [NFS][BUG][已解决]因为inode_dio_done缺失导致的编译问题
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团队检查是否因为移植导致的代码丢失
作者: zhansb    时间: 2016-8-23 16:41
多谢反馈
该bug已经修复过了:
https://bitbucket.org/T-Firefly/ ... bb28d15f8e55a34bdbe




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1