From patchwork Fri Aug 20 19:31:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 120677 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7KJWKgL020127 for ; Fri, 20 Aug 2010 19:32:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753637Ab0HTTcS (ORCPT ); Fri, 20 Aug 2010 15:32:18 -0400 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:54625 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753599Ab0HTTcN (ORCPT ); Fri, 20 Aug 2010 15:32:13 -0400 X-Authority-Analysis: v=1.0 c=1 a=q5VekwcR5O8A:10 a=20KFwNOVAAAA:8 a=u5EmbSD3HZ9GxypNrpUA:9 a=Ae8woSuPJu--LBh6w5nG-JORicgA:4 a=jEp0ucaQiEUA:10 X-Cloudmark-Score: 0 X-Originating-IP: 71.70.153.3 Received: from [71.70.153.3] ([71.70.153.3:55291] helo=mail.poochiereds.net) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 3C/66-18150-B38DE6C4; Fri, 20 Aug 2010 19:32:11 +0000 Received: by mail.poochiereds.net (Postfix, from userid 4447) id 3CAB45814C; Fri, 20 Aug 2010 15:32:11 -0400 (EDT) From: Jeff Layton To: linux-cifs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org Subject: [PATCH 02/15] cifs: add tcon field to cifsFileInfo struct Date: Fri, 20 Aug 2010 15:31:58 -0400 Message-Id: <1282332731-17444-3-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.2.1 In-Reply-To: <1282332731-17444-1-git-send-email-jlayton@redhat.com> References: <1282332731-17444-1-git-send-email-jlayton@redhat.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 20 Aug 2010 19:32:20 +0000 (UTC) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index ce6538a..6bd88b9 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -348,6 +348,7 @@ struct cifsFileInfo { struct file *pfile; /* needed for writepage */ struct inode *pInode; /* needed for oplock break */ struct vfsmount *mnt; + struct cifsTconInfo *tcon; struct mutex lock_mutex; struct list_head llist; /* list of byte range locks we have. */ bool closePend:1; /* file is marked to close */ diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index f9ed075..e5dc1e8 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -153,6 +153,7 @@ cifs_new_fileinfo(struct inode *newinode, __u16 fileHandle, pCifsFile->pfile = file; pCifsFile->invalidHandle = false; pCifsFile->closePend = false; + pCifsFile->tcon = cifs_sb->tcon; mutex_init(&pCifsFile->fh_mutex); mutex_init(&pCifsFile->lock_mutex); INIT_LIST_HEAD(&pCifsFile->llist);