]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: clean up cifs_reopen_file
authorJeff Layton <jlayton@redhat.com>
Fri, 15 Oct 2010 19:33:59 +0000 (15:33 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 18 Oct 2010 01:04:19 +0000 (01:04 +0000)
commit15886177e412db00aa86155fe72608c4ebf5a08f
treeeb4ac34ee40ae499ae2a68c44f71effe657b4504
parentabfe1eedd682ea0f20e7035445982e6d371a2024
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 <jlayton@redhat.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/dir.c
fs/cifs/file.c