diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs_fs.h | 41 | ||||
| -rw-r--r-- | include/linux/nfs_xdr.h | 17 | ||||
| -rw-r--r-- | include/linux/pagemap.h | 12 | ||||
| -rw-r--r-- | include/linux/sunrpc/xprt.h | 1 | ||||
| -rw-r--r-- | include/linux/wait.h | 5 |
5 files changed, 21 insertions, 55 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 5180a7ededec..28d649054d5f 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
| @@ -443,22 +443,6 @@ static inline struct rpc_cred *nfs_file_cred(struct file *file) | |||
| 443 | } | 443 | } |
| 444 | 444 | ||
| 445 | /* | 445 | /* |
| 446 | * linux/fs/nfs/xattr.c | ||
| 447 | */ | ||
| 448 | #ifdef CONFIG_NFS_V3_ACL | ||
| 449 | extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t); | ||
| 450 | extern ssize_t nfs3_getxattr(struct dentry *, const char *, void *, size_t); | ||
| 451 | extern int nfs3_setxattr(struct dentry *, const char *, | ||
| 452 | const void *, size_t, int); | ||
| 453 | extern int nfs3_removexattr (struct dentry *, const char *name); | ||
| 454 | #else | ||
| 455 | # define nfs3_listxattr NULL | ||
| 456 | # define nfs3_getxattr NULL | ||
| 457 | # define nfs3_setxattr NULL | ||
| 458 | # define nfs3_removexattr NULL | ||
| 459 | #endif | ||
| 460 | |||
| 461 | /* | ||
| 462 | * linux/fs/nfs/direct.c | 446 | * linux/fs/nfs/direct.c |
| 463 | */ | 447 | */ |
| 464 | extern ssize_t nfs_direct_IO(int, struct kiocb *, struct iov_iter *, loff_t); | 448 | extern ssize_t nfs_direct_IO(int, struct kiocb *, struct iov_iter *, loff_t); |
| @@ -529,17 +513,9 @@ extern int nfs_updatepage(struct file *, struct page *, unsigned int, unsigned | |||
| 529 | extern int nfs_wb_all(struct inode *inode); | 513 | extern int nfs_wb_all(struct inode *inode); |
| 530 | extern int nfs_wb_page(struct inode *inode, struct page* page); | 514 | extern int nfs_wb_page(struct inode *inode, struct page* page); |
| 531 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); | 515 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); |
| 532 | #if IS_ENABLED(CONFIG_NFS_V3) || IS_ENABLED(CONFIG_NFS_V4) | ||
| 533 | extern int nfs_commit_inode(struct inode *, int); | 516 | extern int nfs_commit_inode(struct inode *, int); |
| 534 | extern struct nfs_commit_data *nfs_commitdata_alloc(void); | 517 | extern struct nfs_commit_data *nfs_commitdata_alloc(void); |
| 535 | extern void nfs_commit_free(struct nfs_commit_data *data); | 518 | extern void nfs_commit_free(struct nfs_commit_data *data); |
| 536 | #else | ||
| 537 | static inline int | ||
| 538 | nfs_commit_inode(struct inode *inode, int how) | ||
| 539 | { | ||
| 540 | return 0; | ||
| 541 | } | ||
| 542 | #endif | ||
| 543 | 519 | ||
| 544 | static inline int | 520 | static inline int |
| 545 | nfs_have_writebacks(struct inode *inode) | 521 | nfs_have_writebacks(struct inode *inode) |
| @@ -557,23 +533,6 @@ extern int nfs_readpage_async(struct nfs_open_context *, struct inode *, | |||
| 557 | struct page *); | 533 | struct page *); |
| 558 | 534 | ||
| 559 | /* | 535 | /* |
| 560 | * linux/fs/nfs3proc.c | ||
| 561 | */ | ||
| 562 | #ifdef CONFIG_NFS_V3_ACL | ||
| 563 | extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type); | ||
| 564 | extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type); | ||
| 565 | extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, | ||
| 566 | struct posix_acl *dfacl); | ||
| 567 | extern const struct xattr_handler *nfs3_xattr_handlers[]; | ||
| 568 | #else | ||
| 569 | static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, | ||
| 570 | struct posix_acl *dfacl) | ||
| 571 | { | ||
| 572 | return 0; | ||
| 573 | } | ||
| 574 | #endif /* CONFIG_NFS_V3_ACL */ | ||
| 575 | |||
| 576 | /* | ||
| 577 | * inline functions | 536 | * inline functions |
| 578 | */ | 537 | */ |
| 579 | 538 | ||
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 0040629894df..6951c7d9097d 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
| @@ -252,17 +252,6 @@ struct nfs4_layoutget { | |||
| 252 | gfp_t gfp_flags; | 252 | gfp_t gfp_flags; |
| 253 | }; | 253 | }; |
| 254 | 254 | ||
| 255 | struct nfs4_getdevicelist_args { | ||
| 256 | struct nfs4_sequence_args seq_args; | ||
| 257 | const struct nfs_fh *fh; | ||
| 258 | u32 layoutclass; | ||
| 259 | }; | ||
| 260 | |||
| 261 | struct nfs4_getdevicelist_res { | ||
| 262 | struct nfs4_sequence_res seq_res; | ||
| 263 | struct pnfs_devicelist *devlist; | ||
| 264 | }; | ||
| 265 | |||
| 266 | struct nfs4_getdeviceinfo_args { | 255 | struct nfs4_getdeviceinfo_args { |
| 267 | struct nfs4_sequence_args seq_args; | 256 | struct nfs4_sequence_args seq_args; |
| 268 | struct pnfs_device *pdev; | 257 | struct pnfs_device *pdev; |
| @@ -279,6 +268,9 @@ struct nfs4_layoutcommit_args { | |||
| 279 | __u64 lastbytewritten; | 268 | __u64 lastbytewritten; |
| 280 | struct inode *inode; | 269 | struct inode *inode; |
| 281 | const u32 *bitmask; | 270 | const u32 *bitmask; |
| 271 | size_t layoutupdate_len; | ||
| 272 | struct page *layoutupdate_page; | ||
| 273 | struct page **layoutupdate_pages; | ||
| 282 | }; | 274 | }; |
| 283 | 275 | ||
| 284 | struct nfs4_layoutcommit_res { | 276 | struct nfs4_layoutcommit_res { |
| @@ -1328,6 +1320,7 @@ struct nfs_commit_data { | |||
| 1328 | struct pnfs_layout_segment *lseg; | 1320 | struct pnfs_layout_segment *lseg; |
| 1329 | struct nfs_client *ds_clp; /* pNFS data server */ | 1321 | struct nfs_client *ds_clp; /* pNFS data server */ |
| 1330 | int ds_commit_index; | 1322 | int ds_commit_index; |
| 1323 | loff_t lwb; | ||
| 1331 | const struct rpc_call_ops *mds_ops; | 1324 | const struct rpc_call_ops *mds_ops; |
| 1332 | const struct nfs_commit_completion_ops *completion_ops; | 1325 | const struct nfs_commit_completion_ops *completion_ops; |
| 1333 | int (*commit_done_cb) (struct rpc_task *task, struct nfs_commit_data *data); | 1326 | int (*commit_done_cb) (struct rpc_task *task, struct nfs_commit_data *data); |
| @@ -1346,6 +1339,7 @@ struct nfs_unlinkdata { | |||
| 1346 | struct inode *dir; | 1339 | struct inode *dir; |
| 1347 | struct rpc_cred *cred; | 1340 | struct rpc_cred *cred; |
| 1348 | struct nfs_fattr dir_attr; | 1341 | struct nfs_fattr dir_attr; |
| 1342 | long timeout; | ||
| 1349 | }; | 1343 | }; |
| 1350 | 1344 | ||
| 1351 | struct nfs_renamedata { | 1345 | struct nfs_renamedata { |
| @@ -1359,6 +1353,7 @@ struct nfs_renamedata { | |||
| 1359 | struct dentry *new_dentry; | 1353 | struct dentry *new_dentry; |
| 1360 | struct nfs_fattr new_fattr; | 1354 | struct nfs_fattr new_fattr; |
| 1361 | void (*complete)(struct rpc_task *, struct nfs_renamedata *); | 1355 | void (*complete)(struct rpc_task *, struct nfs_renamedata *); |
| 1356 | long timeout; | ||
| 1362 | }; | 1357 | }; |
| 1363 | 1358 | ||
| 1364 | struct nfs_access_entry; | 1359 | struct nfs_access_entry; |
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 5ba1813337df..19191d39c4f3 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
| @@ -496,12 +496,14 @@ static inline int lock_page_or_retry(struct page *page, struct mm_struct *mm, | |||
| 496 | } | 496 | } |
| 497 | 497 | ||
| 498 | /* | 498 | /* |
| 499 | * This is exported only for wait_on_page_locked/wait_on_page_writeback. | 499 | * This is exported only for wait_on_page_locked/wait_on_page_writeback, |
| 500 | * Never use this directly! | 500 | * and for filesystems which need to wait on PG_private. |
| 501 | */ | 501 | */ |
| 502 | extern void wait_on_page_bit(struct page *page, int bit_nr); | 502 | extern void wait_on_page_bit(struct page *page, int bit_nr); |
| 503 | 503 | ||
| 504 | extern int wait_on_page_bit_killable(struct page *page, int bit_nr); | 504 | extern int wait_on_page_bit_killable(struct page *page, int bit_nr); |
| 505 | extern int wait_on_page_bit_killable_timeout(struct page *page, | ||
| 506 | int bit_nr, unsigned long timeout); | ||
| 505 | 507 | ||
| 506 | static inline int wait_on_page_locked_killable(struct page *page) | 508 | static inline int wait_on_page_locked_killable(struct page *page) |
| 507 | { | 509 | { |
| @@ -510,6 +512,12 @@ static inline int wait_on_page_locked_killable(struct page *page) | |||
| 510 | return 0; | 512 | return 0; |
| 511 | } | 513 | } |
| 512 | 514 | ||
| 515 | extern wait_queue_head_t *page_waitqueue(struct page *page); | ||
| 516 | static inline void wake_up_page(struct page *page, int bit) | ||
| 517 | { | ||
| 518 | __wake_up_bit(page_waitqueue(page), &page->flags, bit); | ||
| 519 | } | ||
| 520 | |||
| 513 | /* | 521 | /* |
| 514 | * Wait for a page to be unlocked. | 522 | * Wait for a page to be unlocked. |
| 515 | * | 523 | * |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index fcbfe8783243..cf391eef2e6d 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
| @@ -357,6 +357,7 @@ int xs_swapper(struct rpc_xprt *xprt, int enable); | |||
| 357 | #define XPRT_CONNECTION_ABORT (7) | 357 | #define XPRT_CONNECTION_ABORT (7) |
| 358 | #define XPRT_CONNECTION_CLOSE (8) | 358 | #define XPRT_CONNECTION_CLOSE (8) |
| 359 | #define XPRT_CONGESTED (9) | 359 | #define XPRT_CONGESTED (9) |
| 360 | #define XPRT_CONNECTION_REUSE (10) | ||
| 360 | 361 | ||
| 361 | static inline void xprt_set_connected(struct rpc_xprt *xprt) | 362 | static inline void xprt_set_connected(struct rpc_xprt *xprt) |
| 362 | { | 363 | { |
diff --git a/include/linux/wait.h b/include/linux/wait.h index 6fb1ba5f9b2f..80115bf88671 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h | |||
| @@ -25,7 +25,7 @@ struct wait_bit_key { | |||
| 25 | void *flags; | 25 | void *flags; |
| 26 | int bit_nr; | 26 | int bit_nr; |
| 27 | #define WAIT_ATOMIC_T_BIT_NR -1 | 27 | #define WAIT_ATOMIC_T_BIT_NR -1 |
| 28 | unsigned long private; | 28 | unsigned long timeout; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | struct wait_bit_queue { | 31 | struct wait_bit_queue { |
| @@ -154,6 +154,7 @@ int __wait_on_bit_lock(wait_queue_head_t *, struct wait_bit_queue *, wait_bit_ac | |||
| 154 | void wake_up_bit(void *, int); | 154 | void wake_up_bit(void *, int); |
| 155 | void wake_up_atomic_t(atomic_t *); | 155 | void wake_up_atomic_t(atomic_t *); |
| 156 | int out_of_line_wait_on_bit(void *, int, wait_bit_action_f *, unsigned); | 156 | int out_of_line_wait_on_bit(void *, int, wait_bit_action_f *, unsigned); |
| 157 | int out_of_line_wait_on_bit_timeout(void *, int, wait_bit_action_f *, unsigned, unsigned long); | ||
| 157 | int out_of_line_wait_on_bit_lock(void *, int, wait_bit_action_f *, unsigned); | 158 | int out_of_line_wait_on_bit_lock(void *, int, wait_bit_action_f *, unsigned); |
| 158 | int out_of_line_wait_on_atomic_t(atomic_t *, int (*)(atomic_t *), unsigned); | 159 | int out_of_line_wait_on_atomic_t(atomic_t *, int (*)(atomic_t *), unsigned); |
| 159 | wait_queue_head_t *bit_waitqueue(void *, int); | 160 | wait_queue_head_t *bit_waitqueue(void *, int); |
| @@ -859,6 +860,8 @@ int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key); | |||
| 859 | 860 | ||
| 860 | extern int bit_wait(struct wait_bit_key *); | 861 | extern int bit_wait(struct wait_bit_key *); |
| 861 | extern int bit_wait_io(struct wait_bit_key *); | 862 | extern int bit_wait_io(struct wait_bit_key *); |
| 863 | extern int bit_wait_timeout(struct wait_bit_key *); | ||
| 864 | extern int bit_wait_io_timeout(struct wait_bit_key *); | ||
| 862 | 865 | ||
| 863 | /** | 866 | /** |
| 864 | * wait_on_bit - wait for a bit to be cleared | 867 | * wait_on_bit - wait for a bit to be cleared |
