All of lore.kernel.org
 help / color / mirror / Atom feed
* real_inode->i_fop->llseek is not called by ovl_llseek
@ 2019-02-26  6:31 Eddie Horng
  2019-02-26 10:01 ` Amir Goldstein
  0 siblings, 1 reply; 2+ messages in thread
From: Eddie Horng @ 2019-02-26  6:31 UTC (permalink / raw)
  To: Amir Goldstein, Miklos Szeredi, overlayfs

Hello,
Seems real_inode->i_fop->llseek is not called by ovl_llseek?
It happens the lower fs implements llseek similar with ovl_llseek or lower fs
is overlayfs, the "real inode"  s_maxbytes is not passed to
generic_file_llseek_size. Generally it is not a problem, but is it
better to check if realinode has llseek and invoke it?

static loff_t ovl_llseek(struct file *file, loff_t offset, int whence)
{
struct inode *realinode = ovl_inode_real(file_inode(file));

return generic_file_llseek_size(file, offset, whence,
realinode->i_sb->s_maxbytes,
i_size_read(realinode));
}

thanks,
Eddie

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-26 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26  6:31 real_inode->i_fop->llseek is not called by ovl_llseek Eddie Horng
2019-02-26 10:01 ` Amir Goldstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.