Re: [PATCH 12/17] CIFS: Move locks to file structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/3/3 Pavel Shilovsky <piastry@xxxxxxxxxxx>:
> Signed-off-by: Pavel Shilovsky <piastry@xxxxxxxxxxx>
> ---
>  fs/cifs/cifsfs.c   |    1 -
>  fs/cifs/cifsglob.h |    2 +-
>  fs/cifs/file.c     |   98 ++++++++++++++++++++++++++++++++--------------------
>  3 files changed, 61 insertions(+), 40 deletions(-)
>
> diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
> index a9b483b..62413f9 100644
> --- a/fs/cifs/cifsfs.c
> +++ b/fs/cifs/cifsfs.c
> @@ -940,7 +940,6 @@ cifs_init_once(void *inode)
>        struct cifsInodeInfo *cifsi = inode;
>
>        inode_init_once(&cifsi->vfs_inode);
> -       INIT_LIST_HEAD(&cifsi->llist);
>        mutex_init(&cifsi->lock_mutex);
>  }
>
> diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
> index 8755724..e5179d4 100644
> --- a/fs/cifs/cifsglob.h
> +++ b/fs/cifs/cifsglob.h
> @@ -578,6 +578,7 @@ struct cifs_search_info {
>  struct cifsFileInfo {
>        struct list_head tlist; /* pointer to next fid owned by tcon */
>        struct list_head flist; /* next fid (file instance) for this inode */
> +       struct list_head llist; /* brlocks held by this fid */
>        unsigned int uid;       /* allows finding which FileInfo structure */
>        __u32 pid;              /* process id who opened file */
>        __u16 netfid;           /* file id from remote */
         ^^^
This is no need to keep this value here - resent as v2 version.

-- 
Best regards,
Pavel Shilovsky.
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux