---- 在 星期四, 2021-10-07 20:09:59 Miklos Szeredi <miklos@xxxxxxxxxx> 撰写 ---- > On Sun, Oct 03, 2021 at 10:41:34PM +0800, Chengguang Xu wrote: > > ---- 在 星期四, 2021-09-30 20:55:54 Miklos Szeredi <miklos@xxxxxxxxxx> 撰写 ---- > > > > OVL_UPPERDATA is only set after ovl_get_inode() in all callers. This > > > needs to be moved into ovl_inode_init() before calling > > > ovl_inode_set_aops() otherwise this won't work correctly for a copied > > > up file. > > > > > > > Hi Miklos, > > > > I found it's not convenient to move setting OVL_UPPERDATA into ovl_inode_init() because > > If you look at the logic of the thing, then it becomes quite simple. See > following (untested) patch. > Hi Miklos, Okay, thanks for the suggestion. I'll check fot it. Thanks, Chengguang