From: Jeff Layton Date: Fri, 15 Oct 2010 19:33:59 +0000 (-0400) Subject: cifs: clean up cifs_reopen_file X-Git-Tag: v2.6.37-rc1~158^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15886177e412db00aa86155fe72608c4ebf5a08f;p=pandora-kernel.git cifs: clean up cifs_reopen_file Add a f_flags field that holds the f_flags field from the filp. We'll need this info in case the filp ever goes away before the cifsFileInfo does. Have cifs_reopen_file use that value instead of filp->f_flags too and have it take a cifsFileInfo arg instead of a filp. While we're at it, get rid of some bogus cargo-cult NULL pointer checks in that function and reduce the level of indentation. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Acked-by: Dave Kleikamp Signed-off-by: Steve French --- Reading git-diff-tree failed