lkml.org 
[lkml]   [2017]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 4/9] Implement fsopen() to prepare for a mount
Date
Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote:

> > +const struct file_operations fs_fs_fops = {
> > + .read = fs_fs_read,
> > + .write = fs_fs_write,
> > + .release = fs_fs_release,
> > + .llseek = no_llseek,
> > +};
> > +
>
> static const struct ?

No. It's used in the next patch to validate the fd passed to sys_fsmount():

if (f.file->f_op != &fs_fs_fops)
goto err_fsfd;

David

\
 
 \ /
  Last update: 2017-05-04 15:00    [W:0.496 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site