cifs: cifs_write argument change and cleanup
authorJeff Layton <jlayton@redhat.com>
Fri, 15 Oct 2010 19:34:00 +0000 (15:34 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 18 Oct 2010 01:04:23 +0000 (01:04 +0000)
commit7da4b49a0ec481239d9cd51f7053aa8e4e191fa7
tree97f451d75ede084bb7f1c8d2bc843680763f2e16
parent15886177e412db00aa86155fe72608c4ebf5a08f
cifs: cifs_write argument change and cleanup

Have cifs_write take a cifsFileInfo pointer instead of a filp. Since
cifsFileInfo holds references on the dentry, and that holds one to
the inode, we can eliminate some unneeded NULL pointer checks.

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/file.c