onlyyoulk 发表于 2016-8-23 10:55:50

[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:21

多谢反馈
该bug已经修复过了:
https://bitbucket.org/T-Firefly/firenow-lollipop/commits/bb2af00d80ffa64334f07bb28d15f8e55a34bdbe
页: [1]
查看完整版本: [NFS][BUG][已解决]因为inode_dio_done缺失导致的编译问题