fs.h (1be4c195db53e8805c97b452118e89e90afd46df) fs.h (6dec7efa83cd0316c268618cdaa9a383e78312ac)
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013-2016 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

67
68struct dentry {
69 struct inode *d_inode;
70 struct pfs_node *d_pfs_node;
71};
72
73struct file_operations;
74
1/*-
2 * Copyright (c) 2010 Isilon Systems, Inc.
3 * Copyright (c) 2010 iX Systems, Inc.
4 * Copyright (c) 2010 Panasas, Inc.
5 * Copyright (c) 2013-2016 Mellanox Technologies, Ltd.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

67
68struct dentry {
69 struct inode *d_inode;
70 struct pfs_node *d_pfs_node;
71};
72
73struct file_operations;
74
75struct linux_file_wait_queue {
76 struct wait_queue wq;
77 struct wait_queue_head *wqh;
78 atomic_t state;
79#define LINUX_FWQ_STATE_INIT 0
80#define LINUX_FWQ_STATE_NOT_READY 1
81#define LINUX_FWQ_STATE_QUEUED 2
82#define LINUX_FWQ_STATE_READY 3
83#define LINUX_FWQ_STATE_MAX 4
84};
85
75struct linux_file {
76 struct file *_file;
77 const struct file_operations *f_op;
78 void *private_data;
79 int f_flags;
80 int f_mode; /* Just starting mode. */
81 struct dentry *f_dentry;
82 struct dentry f_dentry_store;

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

92 /* kqfilter support */
93 int f_kqflags;
94#define LINUX_KQ_FLAG_HAS_READ (1 << 0)
95#define LINUX_KQ_FLAG_HAS_WRITE (1 << 1)
96#define LINUX_KQ_FLAG_NEED_READ (1 << 2)
97#define LINUX_KQ_FLAG_NEED_WRITE (1 << 3)
98 /* protects f_selinfo.si_note */
99 spinlock_t f_kqlock;
86struct linux_file {
87 struct file *_file;
88 const struct file_operations *f_op;
89 void *private_data;
90 int f_flags;
91 int f_mode; /* Just starting mode. */
92 struct dentry *f_dentry;
93 struct dentry f_dentry_store;

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

103 /* kqfilter support */
104 int f_kqflags;
105#define LINUX_KQ_FLAG_HAS_READ (1 << 0)
106#define LINUX_KQ_FLAG_HAS_WRITE (1 << 1)
107#define LINUX_KQ_FLAG_NEED_READ (1 << 2)
108#define LINUX_KQ_FLAG_NEED_WRITE (1 << 3)
109 /* protects f_selinfo.si_note */
110 spinlock_t f_kqlock;
111 struct linux_file_wait_queue f_wait_queue;
100};
101
102#define file linux_file
103#define fasync_struct sigio *
104
105#define fasync_helper(fd, filp, on, queue) \
106({ \
107 if ((on)) \

--- 172 unchanged lines hidden ---
112};
113
114#define file linux_file
115#define fasync_struct sigio *
116
117#define fasync_helper(fd, filp, on, queue) \
118({ \
119 if ((on)) \

--- 172 unchanged lines hidden ---