cifsglob.h (46eeaa11bdd1bc9e077bdf741d32ca7235d263c6) cifsglob.h (6f17163b9339fac92023a1d9bef22128db3b9a4b)
1/* SPDX-License-Identifier: LGPL-2.1 */
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2002,2008
5 * Author(s): Steve French (sfrench@us.ibm.com)
6 * Jeremy Allison (jra@samba.org)
7 *
8 */

--- 411 unchanged lines hidden (view full) ---

420 const char *full_path,
421 char **target_path);
422 /* open a file for non-posix mounts */
423 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
424 void *buf);
425 /* set fid protocol-specific info */
426 void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32);
427 /* close a file */
1/* SPDX-License-Identifier: LGPL-2.1 */
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2002,2008
5 * Author(s): Steve French (sfrench@us.ibm.com)
6 * Jeremy Allison (jra@samba.org)
7 *
8 */

--- 411 unchanged lines hidden (view full) ---

420 const char *full_path,
421 char **target_path);
422 /* open a file for non-posix mounts */
423 int (*open)(const unsigned int xid, struct cifs_open_parms *oparms, __u32 *oplock,
424 void *buf);
425 /* set fid protocol-specific info */
426 void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32);
427 /* close a file */
428 void (*close)(const unsigned int, struct cifs_tcon *,
428 int (*close)(const unsigned int, struct cifs_tcon *,
429 struct cifs_fid *);
430 /* close a file, returning file attributes and timestamps */
429 struct cifs_fid *);
430 /* close a file, returning file attributes and timestamps */
431 void (*close_getattr)(const unsigned int xid, struct cifs_tcon *tcon,
431 int (*close_getattr)(const unsigned int xid, struct cifs_tcon *tcon,
432 struct cifsFileInfo *pfile_info);
433 /* send a flush request to the server */
434 int (*flush)(const unsigned int, struct cifs_tcon *, struct cifs_fid *);
435 /* async read from the server */
436 int (*async_readv)(struct cifs_readdata *);
437 /* async write to the server */
438 int (*async_writev)(struct cifs_writedata *,
439 void (*release)(struct kref *));

--- 963 unchanged lines hidden (view full) ---

1403 /* BB add lock scope info here if needed */
1404 /* lock scope id (0 if none) */
1405 struct dentry *dentry;
1406 struct tcon_link *tlink;
1407 unsigned int f_flags;
1408 bool invalidHandle:1; /* file closed via session abend */
1409 bool swapfile:1;
1410 bool oplock_break_cancelled:1;
432 struct cifsFileInfo *pfile_info);
433 /* send a flush request to the server */
434 int (*flush)(const unsigned int, struct cifs_tcon *, struct cifs_fid *);
435 /* async read from the server */
436 int (*async_readv)(struct cifs_readdata *);
437 /* async write to the server */
438 int (*async_writev)(struct cifs_writedata *,
439 void (*release)(struct kref *));

--- 963 unchanged lines hidden (view full) ---

1403 /* BB add lock scope info here if needed */
1404 /* lock scope id (0 if none) */
1405 struct dentry *dentry;
1406 struct tcon_link *tlink;
1407 unsigned int f_flags;
1408 bool invalidHandle:1; /* file closed via session abend */
1409 bool swapfile:1;
1410 bool oplock_break_cancelled:1;
1411 bool offload:1; /* offload final part of _put to a wq */
1411 unsigned int oplock_epoch; /* epoch from the lease break */
1412 __u32 oplock_level; /* oplock/lease level from the lease break */
1413 int count;
1414 spinlock_t file_info_lock; /* protects four flag/count fields above */
1415 struct mutex fh_mutex; /* prevents reopen race after dead ses*/
1416 struct cifs_search_info srch_inf;
1417 struct work_struct oplock_break; /* work for oplock breaks */
1418 struct work_struct put; /* work for the final part of _put */
1412 unsigned int oplock_epoch; /* epoch from the lease break */
1413 __u32 oplock_level; /* oplock/lease level from the lease break */
1414 int count;
1415 spinlock_t file_info_lock; /* protects four flag/count fields above */
1416 struct mutex fh_mutex; /* prevents reopen race after dead ses*/
1417 struct cifs_search_info srch_inf;
1418 struct work_struct oplock_break; /* work for oplock breaks */
1419 struct work_struct put; /* work for the final part of _put */
1420 struct work_struct serverclose; /* work for serverclose */
1419 struct delayed_work deferred;
1420 bool deferred_close_scheduled; /* Flag to indicate close is scheduled */
1421 char *symlink_target;
1422};
1423
1424struct cifs_io_parms {
1425 __u16 netfid;
1426 __u64 persistent_fid; /* persist file id for smb2 */

--- 641 unchanged lines hidden (view full) ---

2068void smb2_deferred_work_close(struct work_struct *work);
2069
2070extern const struct slow_work_ops cifs_oplock_break_ops;
2071extern struct workqueue_struct *cifsiod_wq;
2072extern struct workqueue_struct *decrypt_wq;
2073extern struct workqueue_struct *fileinfo_put_wq;
2074extern struct workqueue_struct *cifsoplockd_wq;
2075extern struct workqueue_struct *deferredclose_wq;
1421 struct delayed_work deferred;
1422 bool deferred_close_scheduled; /* Flag to indicate close is scheduled */
1423 char *symlink_target;
1424};
1425
1426struct cifs_io_parms {
1427 __u16 netfid;
1428 __u64 persistent_fid; /* persist file id for smb2 */

--- 641 unchanged lines hidden (view full) ---

2070void smb2_deferred_work_close(struct work_struct *work);
2071
2072extern const struct slow_work_ops cifs_oplock_break_ops;
2073extern struct workqueue_struct *cifsiod_wq;
2074extern struct workqueue_struct *decrypt_wq;
2075extern struct workqueue_struct *fileinfo_put_wq;
2076extern struct workqueue_struct *cifsoplockd_wq;
2077extern struct workqueue_struct *deferredclose_wq;
2078extern struct workqueue_struct *serverclose_wq;
2076extern __u32 cifs_lock_secret;
2077
2078extern mempool_t *cifs_mid_poolp;
2079
2080/* Operations for different SMB versions */
2081#define SMB1_VERSION_STRING "1.0"
2082#define SMB20_VERSION_STRING "2.0"
2083#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY

--- 198 unchanged lines hidden ---
2079extern __u32 cifs_lock_secret;
2080
2081extern mempool_t *cifs_mid_poolp;
2082
2083/* Operations for different SMB versions */
2084#define SMB1_VERSION_STRING "1.0"
2085#define SMB20_VERSION_STRING "2.0"
2086#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY

--- 198 unchanged lines hidden ---