If previous check (pos and overflow check) fails, there's no chance to use variable inode, initialized by file_inode func in the beginning. So delay the operation until actuallyneeding inode for check. Maybe I should add a more detailed commit message. On 2018/6/21 20:22, Christoph Hellwig wrote:
On Thu, Jun 21, 2018 at 06:29:33PM +0800, lorneli.cs@xxxxxxxxx wrote:From: Lorne Li <lorneli.cs@xxxxxxxxx> Move file_inode function to the front of line actually using inode.Why?