On 10/16/2010 01:03 AM, Jeff Layton wrote:
> Eliminate the poor, misunderstood "oflags" option from cifs_new_fileinfo.
> The callers mostly pass in the filp->f_flags here.
> 
> That's not correct however since we're checking that value for
> the presence of FMODE_READ. Luckily that only affects how the f_list is
> ordered. What it really wants here is the file->f_mode. Just use that
> field from the filp to determine it.
> 
> Signed-off-by: Jeff Layton <[email protected]>
> ---
>  fs/cifs/cifsproto.h |    3 +--
>  fs/cifs/dir.c       |    9 ++++-----
>  fs/cifs/file.c      |    5 ++---
>  3 files changed, 7 insertions(+), 10 deletions(-)
> 

Looks good to me.

Reviewed-by: Suresh Jayaraman <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to