lkml.org 
[lkml]   [2019]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4.19 117/118] ovl: support stacked SEEK_HOLE/SEEK_DATA
Hi!

> ---
> fs/overlayfs/file.c | 44 ++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 40 insertions(+), 4 deletions(-)
>
> --- a/fs/overlayfs/file.c
> +++ b/fs/overlayfs/file.c
> @@ -146,11 +146,47 @@ static int ovl_release(struct inode *ino
>
> static loff_t ovl_llseek(struct file *file, loff_t offset, int whence)
> {
> - struct inode *realinode = ovl_inode_real(file_inode(file));
> + struct inode *inode = file_inode(file);
> + struct fd real;
> + const struct cred *old_cred;
> + ssize_t ret;
>
> - return generic_file_llseek_size(file, offset, whence,
> - realinode->i_sb->s_maxbytes,
> - i_size_read(realinode));
> + /*
> + * The two special cases below do not need to involve real fs,
> + * so we can optimizing concurrent callers.
> + */

AFAICT correct english is "optimize".

Thanks,
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-06-16 22:01    [W:0.400 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site