fuse_i.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. /*
  2. FUSE: Filesystem in Userspace
  3. Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu>
  4. This program can be distributed under the terms of the GNU GPL.
  5. See the file COPYING.
  6. */
  7. #ifndef _FS_FUSE_I_H
  8. #define _FS_FUSE_I_H
  9. #include <linux/fuse.h>
  10. #include <linux/fs.h>
  11. #include <linux/mount.h>
  12. #include <linux/wait.h>
  13. #include <linux/list.h>
  14. #include <linux/spinlock.h>
  15. #include <linux/mm.h>
  16. #include <linux/backing-dev.h>
  17. #include <linux/mutex.h>
  18. #include <linux/rwsem.h>
  19. #include <linux/rbtree.h>
  20. #include <linux/poll.h>
  21. #include <linux/workqueue.h>
  22. /** Max number of pages that can be used in a single read request */
  23. #define FUSE_MAX_PAGES_PER_REQ 32
  24. /** Bias for fi->writectr, meaning new writepages must not be sent */
  25. #define FUSE_NOWRITE INT_MIN
  26. /** It could be as large as PATH_MAX, but would that have any uses? */
  27. #define FUSE_NAME_MAX 1024
  28. /** Number of dentries for each connection in the control filesystem */
  29. #define FUSE_CTL_NUM_DENTRIES 5
  30. /** If the FUSE_DEFAULT_PERMISSIONS flag is given, the filesystem
  31. module will check permissions based on the file mode. Otherwise no
  32. permission checking is done in the kernel */
  33. #define FUSE_DEFAULT_PERMISSIONS (1 << 0)
  34. /** If the FUSE_ALLOW_OTHER flag is given, then not only the user
  35. doing the mount will be allowed to access the filesystem */
  36. #define FUSE_ALLOW_OTHER (1 << 1)
  37. /** List of active connections */
  38. extern struct list_head fuse_conn_list;
  39. /** Global mutex protecting fuse_conn_list and the control filesystem */
  40. extern struct mutex fuse_mutex;
  41. /** Module parameters */
  42. extern unsigned max_user_bgreq;
  43. extern unsigned max_user_congthresh;
  44. /* One forget request */
  45. struct fuse_forget_link {
  46. struct fuse_forget_one forget_one;
  47. struct fuse_forget_link *next;
  48. };
  49. /** FUSE inode */
  50. struct fuse_inode {
  51. /** Inode data */
  52. struct inode inode;
  53. /** Unique ID, which identifies the inode between userspace
  54. * and kernel */
  55. u64 nodeid;
  56. /** Number of lookups on this inode */
  57. u64 nlookup;
  58. /** The request used for sending the FORGET message */
  59. struct fuse_forget_link *forget;
  60. /** Time in jiffies until the file attributes are valid */
  61. u64 i_time;
  62. /** The sticky bit in inode->i_mode may have been removed, so
  63. preserve the original mode */
  64. umode_t orig_i_mode;
  65. /** 64 bit inode number */
  66. u64 orig_ino;
  67. /** Version of last attribute change */
  68. u64 attr_version;
  69. /** Files usable in writepage. Protected by fc->lock */
  70. struct list_head write_files;
  71. /** Writepages pending on truncate or fsync */
  72. struct list_head queued_writes;
  73. /** Number of sent writes, a negative bias (FUSE_NOWRITE)
  74. * means more writes are blocked */
  75. int writectr;
  76. /** Waitq for writepage completion */
  77. wait_queue_head_t page_waitq;
  78. /** List of writepage requestst (pending or sent) */
  79. struct list_head writepages;
  80. /** Miscellaneous bits describing inode state */
  81. unsigned long state;
  82. };
  83. /** FUSE inode state bits */
  84. enum {
  85. /** An operation changing file size is in progress */
  86. FUSE_I_SIZE_UNSTABLE,
  87. };
  88. struct fuse_conn;
  89. /** FUSE specific file data */
  90. struct fuse_file {
  91. /** Fuse connection for this file */
  92. struct fuse_conn *fc;
  93. /** Request reserved for flush and release */
  94. struct fuse_req *reserved_req;
  95. /** Kernel file handle guaranteed to be unique */
  96. u64 kh;
  97. /** File handle used by userspace */
  98. u64 fh;
  99. /** Node id of this file */
  100. u64 nodeid;
  101. /** Refcount */
  102. atomic_t count;
  103. /** FOPEN_* flags returned by open */
  104. u32 open_flags;
  105. /** Entry on inode's write_files list */
  106. struct list_head write_entry;
  107. /** RB node to be linked on fuse_conn->polled_files */
  108. struct rb_node polled_node;
  109. /** Wait queue head for poll */
  110. wait_queue_head_t poll_wait;
  111. /** Has flock been performed on this file? */
  112. bool flock:1;
  113. };
  114. /** One input argument of a request */
  115. struct fuse_in_arg {
  116. unsigned size;
  117. const void *value;
  118. };
  119. /** The request input */
  120. struct fuse_in {
  121. /** The request header */
  122. struct fuse_in_header h;
  123. /** True if the data for the last argument is in req->pages */
  124. unsigned argpages:1;
  125. /** Number of arguments */
  126. unsigned numargs;
  127. /** Array of arguments */
  128. struct fuse_in_arg args[3];
  129. };
  130. /** One output argument of a request */
  131. struct fuse_arg {
  132. unsigned size;
  133. void *value;
  134. };
  135. /** The request output */
  136. struct fuse_out {
  137. /** Header returned from userspace */
  138. struct fuse_out_header h;
  139. /*
  140. * The following bitfields are not changed during the request
  141. * processing
  142. */
  143. /** Last argument is variable length (can be shorter than
  144. arg->size) */
  145. unsigned argvar:1;
  146. /** Last argument is a list of pages to copy data to */
  147. unsigned argpages:1;
  148. /** Zero partially or not copied pages */
  149. unsigned page_zeroing:1;
  150. /** Pages may be replaced with new ones */
  151. unsigned page_replace:1;
  152. /** Number or arguments */
  153. unsigned numargs;
  154. /** Array of arguments */
  155. struct fuse_arg args[3];
  156. };
  157. /** The request state */
  158. enum fuse_req_state {
  159. FUSE_REQ_INIT = 0,
  160. FUSE_REQ_PENDING,
  161. FUSE_REQ_READING,
  162. FUSE_REQ_SENT,
  163. FUSE_REQ_WRITING,
  164. FUSE_REQ_FINISHED
  165. };
  166. /**
  167. * A request to the client
  168. */
  169. struct fuse_req {
  170. /** This can be on either pending processing or io lists in
  171. fuse_conn */
  172. struct list_head list;
  173. /** Entry on the interrupts list */
  174. struct list_head intr_entry;
  175. /** refcount */
  176. atomic_t count;
  177. /** Unique ID for the interrupt request */
  178. u64 intr_unique;
  179. /*
  180. * The following bitfields are either set once before the
  181. * request is queued or setting/clearing them is protected by
  182. * fuse_conn->lock
  183. */
  184. /** True if the request has reply */
  185. unsigned isreply:1;
  186. /** Force sending of the request even if interrupted */
  187. unsigned force:1;
  188. /** The request was aborted */
  189. unsigned aborted:1;
  190. /** Request is sent in the background */
  191. unsigned background:1;
  192. /** The request has been interrupted */
  193. unsigned interrupted:1;
  194. /** Data is being copied to/from the request */
  195. unsigned locked:1;
  196. /** Request is counted as "waiting" */
  197. unsigned waiting:1;
  198. /** State of the request */
  199. enum fuse_req_state state;
  200. /** The request input */
  201. struct fuse_in in;
  202. /** The request output */
  203. struct fuse_out out;
  204. /** Used to wake up the task waiting for completion of request*/
  205. wait_queue_head_t waitq;
  206. /** Data for asynchronous requests */
  207. union {
  208. struct {
  209. union {
  210. struct fuse_release_in in;
  211. struct work_struct work;
  212. };
  213. struct path path;
  214. } release;
  215. struct fuse_init_in init_in;
  216. struct fuse_init_out init_out;
  217. struct cuse_init_in cuse_init_in;
  218. struct {
  219. struct fuse_read_in in;
  220. u64 attr_ver;
  221. } read;
  222. struct {
  223. struct fuse_write_in in;
  224. struct fuse_write_out out;
  225. } write;
  226. struct fuse_notify_retrieve_in retrieve_in;
  227. struct fuse_lk_in lk_in;
  228. } misc;
  229. /** page vector */
  230. struct page *pages[FUSE_MAX_PAGES_PER_REQ];
  231. /** number of pages in vector */
  232. unsigned num_pages;
  233. /** offset of data on first page */
  234. unsigned page_offset;
  235. /** File used in the request (or NULL) */
  236. struct fuse_file *ff;
  237. /** Inode used in the request or NULL */
  238. struct inode *inode;
  239. /** Path used for completing d_canonical_path */
  240. struct path *canonical_path;
  241. /** Link on fi->writepages */
  242. struct list_head writepages_entry;
  243. /** Request completion callback */
  244. void (*end)(struct fuse_conn *, struct fuse_req *);
  245. /** Request is stolen from fuse_file->reserved_req */
  246. struct file *stolen_file;
  247. };
  248. /**
  249. * A Fuse connection.
  250. *
  251. * This structure is created, when the filesystem is mounted, and is
  252. * destroyed, when the client device is closed and the filesystem is
  253. * unmounted.
  254. */
  255. struct fuse_conn {
  256. /** Lock protecting accessess to members of this structure */
  257. spinlock_t lock;
  258. /** Mutex protecting against directory alias creation */
  259. struct mutex inst_mutex;
  260. /** Refcount */
  261. atomic_t count;
  262. /** The user id for this mount */
  263. uid_t user_id;
  264. /** The group id for this mount */
  265. gid_t group_id;
  266. /** The fuse mount flags for this mount */
  267. unsigned flags;
  268. /** Maximum read size */
  269. unsigned max_read;
  270. /** Maximum write size */
  271. unsigned max_write;
  272. /** Readers of the connection are waiting on this */
  273. wait_queue_head_t waitq;
  274. /** The list of pending requests */
  275. struct list_head pending;
  276. /** The list of requests being processed */
  277. struct list_head processing;
  278. /** The list of requests under I/O */
  279. struct list_head io;
  280. /** The next unique kernel file handle */
  281. u64 khctr;
  282. /** rbtree of fuse_files waiting for poll events indexed by ph */
  283. struct rb_root polled_files;
  284. /** Maximum number of outstanding background requests */
  285. unsigned max_background;
  286. /** Number of background requests at which congestion starts */
  287. unsigned congestion_threshold;
  288. /** Number of requests currently in the background */
  289. unsigned num_background;
  290. /** Number of background requests currently queued for userspace */
  291. unsigned active_background;
  292. /** The list of background requests set aside for later queuing */
  293. struct list_head bg_queue;
  294. /** Pending interrupts */
  295. struct list_head interrupts;
  296. /** Queue of pending forgets */
  297. struct fuse_forget_link forget_list_head;
  298. struct fuse_forget_link *forget_list_tail;
  299. /** Batching of FORGET requests (positive indicates FORGET batch) */
  300. int forget_batch;
  301. /** Flag indicating if connection is blocked. This will be
  302. the case before the INIT reply is received, and if there
  303. are too many outstading backgrounds requests */
  304. int blocked;
  305. /** waitq for blocked connection */
  306. wait_queue_head_t blocked_waitq;
  307. /** waitq for reserved requests */
  308. wait_queue_head_t reserved_req_waitq;
  309. /** The next unique request id */
  310. u64 reqctr;
  311. /** Connection established, cleared on umount, connection
  312. abort and device release */
  313. unsigned connected;
  314. /** Connection failed (version mismatch). Cannot race with
  315. setting other bitfields since it is only set once in INIT
  316. reply, before any other request, and never cleared */
  317. unsigned conn_error:1;
  318. /** Connection successful. Only set in INIT */
  319. unsigned conn_init:1;
  320. /** Do readpages asynchronously? Only set in INIT */
  321. unsigned async_read:1;
  322. /** Do not send separate SETATTR request before open(O_TRUNC) */
  323. unsigned atomic_o_trunc:1;
  324. /** Filesystem supports NFS exporting. Only set in INIT */
  325. unsigned export_support:1;
  326. /** Set if bdi is valid */
  327. unsigned bdi_initialized:1;
  328. /*
  329. * The following bitfields are only for optimization purposes
  330. * and hence races in setting them will not cause malfunction
  331. */
  332. /** Is fsync not implemented by fs? */
  333. unsigned no_fsync:1;
  334. /** Is fsyncdir not implemented by fs? */
  335. unsigned no_fsyncdir:1;
  336. /** Is flush not implemented by fs? */
  337. unsigned no_flush:1;
  338. /** Is setxattr not implemented by fs? */
  339. unsigned no_setxattr:1;
  340. /** Is getxattr not implemented by fs? */
  341. unsigned no_getxattr:1;
  342. /** Is listxattr not implemented by fs? */
  343. unsigned no_listxattr:1;
  344. /** Is removexattr not implemented by fs? */
  345. unsigned no_removexattr:1;
  346. /** Are posix file locking primitives not implemented by fs? */
  347. unsigned no_lock:1;
  348. /** Is access not implemented by fs? */
  349. unsigned no_access:1;
  350. /** Is create not implemented by fs? */
  351. unsigned no_create:1;
  352. /** Is interrupt not implemented by fs? */
  353. unsigned no_interrupt:1;
  354. /** Is bmap not implemented by fs? */
  355. unsigned no_bmap:1;
  356. /** Is poll not implemented by fs? */
  357. unsigned no_poll:1;
  358. /** Do multi-page cached writes */
  359. unsigned big_writes:1;
  360. /** Don't apply umask to creation modes */
  361. unsigned dont_mask:1;
  362. /** Are BSD file locking primitives not implemented by fs? */
  363. unsigned no_flock:1;
  364. /** The number of requests waiting for completion */
  365. atomic_t num_waiting;
  366. /** Negotiated minor version */
  367. unsigned minor;
  368. /** Backing dev info */
  369. struct backing_dev_info bdi;
  370. /** Entry on the fuse_conn_list */
  371. struct list_head entry;
  372. /** Device ID from super block */
  373. dev_t dev;
  374. /** Dentries in the control filesystem */
  375. struct dentry *ctl_dentry[FUSE_CTL_NUM_DENTRIES];
  376. /** number of dentries used in the above array */
  377. int ctl_ndents;
  378. /** O_ASYNC requests */
  379. struct fasync_struct *fasync;
  380. /** Key for lock owner ID scrambling */
  381. u32 scramble_key[4];
  382. /** Reserved request for the DESTROY message */
  383. struct fuse_req *destroy_req;
  384. /** Version counter for attribute changes */
  385. u64 attr_version;
  386. /** Called on final put */
  387. void (*release)(struct fuse_conn *);
  388. /** Super block for this connection. */
  389. struct super_block *sb;
  390. /** Read/write semaphore to hold when accessing sb. */
  391. struct rw_semaphore killsb;
  392. };
  393. static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb)
  394. {
  395. return sb->s_fs_info;
  396. }
  397. static inline struct fuse_conn *get_fuse_conn(struct inode *inode)
  398. {
  399. return get_fuse_conn_super(inode->i_sb);
  400. }
  401. static inline struct fuse_inode *get_fuse_inode(struct inode *inode)
  402. {
  403. return container_of(inode, struct fuse_inode, inode);
  404. }
  405. static inline u64 get_node_id(struct inode *inode)
  406. {
  407. return get_fuse_inode(inode)->nodeid;
  408. }
  409. /** Device operations */
  410. extern const struct file_operations fuse_dev_operations;
  411. extern const struct dentry_operations fuse_dentry_operations;
  412. /**
  413. * Inode to nodeid comparison.
  414. */
  415. int fuse_inode_eq(struct inode *inode, void *_nodeidp);
  416. /**
  417. * Get a filled in inode
  418. */
  419. struct inode *fuse_iget(struct super_block *sb, u64 nodeid,
  420. int generation, struct fuse_attr *attr,
  421. u64 attr_valid, u64 attr_version);
  422. int fuse_lookup_name(struct super_block *sb, u64 nodeid, struct qstr *name,
  423. struct fuse_entry_out *outarg, struct inode **inode);
  424. /**
  425. * Send FORGET command
  426. */
  427. void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget,
  428. u64 nodeid, u64 nlookup);
  429. struct fuse_forget_link *fuse_alloc_forget(void);
  430. /**
  431. * Initialize READ or READDIR request
  432. */
  433. void fuse_read_fill(struct fuse_req *req, struct file *file,
  434. loff_t pos, size_t count, int opcode);
  435. /**
  436. * Send OPEN or OPENDIR request
  437. */
  438. int fuse_open_common(struct inode *inode, struct file *file, bool isdir);
  439. struct fuse_file *fuse_file_alloc(struct fuse_conn *fc);
  440. struct fuse_file *fuse_file_get(struct fuse_file *ff);
  441. void fuse_file_free(struct fuse_file *ff);
  442. void fuse_finish_open(struct inode *inode, struct file *file);
  443. void fuse_sync_release(struct fuse_file *ff, int flags);
  444. /**
  445. * Send RELEASE or RELEASEDIR request
  446. */
  447. void fuse_release_common(struct file *file, int opcode);
  448. /**
  449. * Send FSYNC or FSYNCDIR request
  450. */
  451. int fuse_fsync_common(struct file *file, loff_t start, loff_t end,
  452. int datasync, int isdir);
  453. /**
  454. * Notify poll wakeup
  455. */
  456. int fuse_notify_poll_wakeup(struct fuse_conn *fc,
  457. struct fuse_notify_poll_wakeup_out *outarg);
  458. /**
  459. * Initialize file operations on a regular file
  460. */
  461. void fuse_init_file_inode(struct inode *inode);
  462. /**
  463. * Initialize inode operations on regular files and special files
  464. */
  465. void fuse_init_common(struct inode *inode);
  466. /**
  467. * Initialize inode and file operations on a directory
  468. */
  469. void fuse_init_dir(struct inode *inode);
  470. /**
  471. * Initialize inode operations on a symlink
  472. */
  473. void fuse_init_symlink(struct inode *inode);
  474. /**
  475. * Change attributes of an inode
  476. */
  477. void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr,
  478. u64 attr_valid, u64 attr_version);
  479. void fuse_change_attributes_common(struct inode *inode, struct fuse_attr *attr,
  480. u64 attr_valid);
  481. /**
  482. * Initialize the client device
  483. */
  484. int fuse_dev_init(void);
  485. /**
  486. * Cleanup the client device
  487. */
  488. void fuse_dev_cleanup(void);
  489. int fuse_ctl_init(void);
  490. void fuse_ctl_cleanup(void);
  491. /**
  492. * Allocate a request
  493. */
  494. struct fuse_req *fuse_request_alloc(void);
  495. struct fuse_req *fuse_request_alloc_nofs(void);
  496. /**
  497. * Free a request
  498. */
  499. void fuse_request_free(struct fuse_req *req);
  500. /**
  501. * Get a request, may fail with -ENOMEM
  502. */
  503. struct fuse_req *fuse_get_req(struct fuse_conn *fc);
  504. /**
  505. * Gets a requests for a file operation, always succeeds
  506. */
  507. struct fuse_req *fuse_get_req_nofail(struct fuse_conn *fc, struct file *file);
  508. /**
  509. * Decrement reference count of a request. If count goes to zero free
  510. * the request.
  511. */
  512. void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req);
  513. /**
  514. * Send a request (synchronous)
  515. */
  516. void fuse_request_send(struct fuse_conn *fc, struct fuse_req *req);
  517. /**
  518. * Send a request in the background
  519. */
  520. void fuse_request_send_background(struct fuse_conn *fc, struct fuse_req *req);
  521. void fuse_request_send_background_locked(struct fuse_conn *fc,
  522. struct fuse_req *req);
  523. /* Abort all requests */
  524. void fuse_abort_conn(struct fuse_conn *fc);
  525. /**
  526. * Invalidate inode attributes
  527. */
  528. void fuse_invalidate_attr(struct inode *inode);
  529. void fuse_invalidate_entry_cache(struct dentry *entry);
  530. /**
  531. * Acquire reference to fuse_conn
  532. */
  533. struct fuse_conn *fuse_conn_get(struct fuse_conn *fc);
  534. void fuse_conn_kill(struct fuse_conn *fc);
  535. /**
  536. * Initialize fuse_conn
  537. */
  538. void fuse_conn_init(struct fuse_conn *fc);
  539. /**
  540. * Release reference to fuse_conn
  541. */
  542. void fuse_conn_put(struct fuse_conn *fc);
  543. /**
  544. * Add connection to control filesystem
  545. */
  546. int fuse_ctl_add_conn(struct fuse_conn *fc);
  547. /**
  548. * Remove connection from control filesystem
  549. */
  550. void fuse_ctl_remove_conn(struct fuse_conn *fc);
  551. /**
  552. * Is file type valid?
  553. */
  554. int fuse_valid_type(int m);
  555. /**
  556. * Is task allowed to perform filesystem operation?
  557. */
  558. int fuse_allow_task(struct fuse_conn *fc, struct task_struct *task);
  559. u64 fuse_lock_owner_id(struct fuse_conn *fc, fl_owner_t id);
  560. int fuse_update_attributes(struct inode *inode, struct kstat *stat,
  561. struct file *file, bool *refreshed);
  562. void fuse_flush_writepages(struct inode *inode);
  563. void fuse_set_nowrite(struct inode *inode);
  564. void fuse_release_nowrite(struct inode *inode);
  565. u64 fuse_get_attr_version(struct fuse_conn *fc);
  566. /**
  567. * File-system tells the kernel to invalidate cache for the given node id.
  568. */
  569. int fuse_reverse_inval_inode(struct super_block *sb, u64 nodeid,
  570. loff_t offset, loff_t len);
  571. /**
  572. * File-system tells the kernel to invalidate parent attributes and
  573. * the dentry matching parent/name.
  574. *
  575. * If the child_nodeid is non-zero and:
  576. * - matches the inode number for the dentry matching parent/name,
  577. * - is not a mount point
  578. * - is a file or oan empty directory
  579. * then the dentry is unhashed (d_delete()).
  580. */
  581. int fuse_reverse_inval_entry(struct super_block *sb, u64 parent_nodeid,
  582. u64 child_nodeid, struct qstr *name);
  583. int fuse_do_open(struct fuse_conn *fc, u64 nodeid, struct file *file,
  584. bool isdir);
  585. ssize_t fuse_direct_io(struct file *file, const char __user *buf,
  586. size_t count, loff_t *ppos, int write);
  587. long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg,
  588. unsigned int flags);
  589. long fuse_ioctl_common(struct file *file, unsigned int cmd,
  590. unsigned long arg, unsigned int flags);
  591. unsigned fuse_file_poll(struct file *file, poll_table *wait);
  592. int fuse_dev_release(struct inode *inode, struct file *file);
  593. void fuse_write_update_size(struct inode *inode, loff_t pos);
  594. #endif /* _FS_FUSE_I_H */