Firefly开源社区

打印 上一主题 下一主题

[NFS][BUG][已解决]因为inode_dio_done缺失导致的编译问题

13

积分

0

威望

0

贡献

游客

积分
13

[NFS][BUG][已解决]因为inode_dio_done缺失导致的编译问题

发表于 2016-8-23 10:55:50      浏览:4228 | 回复: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团队检查是否因为移植导致的代码丢失
回复

使用道具 举报

2918

积分

56

威望

46

贡献

高级创客

Rank: 6Rank: 6

积分
2918

优秀版主论坛元老

发表于 2016-8-23 16:41:21        只看该作者  沙发
多谢反馈
该bug已经修复过了:
https://bitbucket.org/T-Firefly/ ... bb28d15f8e55a34bdbe
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表