fuse_i.h 18 KB

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