From: Jeff Layton Date: Fri, 15 Oct 2010 19:33:57 +0000 (-0400) Subject: cifs: eliminate oflags option from cifs_new_fileinfo X-Git-Tag: v2.6.37-rc1~158^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6a53460e2a105904deeada737b3f878d78517b3;p=pandora-kernel.git cifs: eliminate oflags option from cifs_new_fileinfo 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 Reviewed-by: Suresh Jayaraman Signed-off-by: Steve French --- Reading git-diff-tree failed