Re: [PATCH] ovl: set overlayfs inode's a_ops->direct_IO properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 ---- 在 星期四, 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




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux