mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
pNFS: Enable per-layout segment commit structures
Enable adding and lookup of per-layout segment commits in filelayout and flexfilelayout. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
a9901899b6
commit
ba827c9abb
4 changed files with 117 additions and 6 deletions
|
@ -150,6 +150,8 @@ struct pnfs_layoutdriver_type {
|
|||
const struct nfs_pageio_ops *pg_write_ops;
|
||||
|
||||
struct pnfs_ds_commit_info *(*get_ds_info) (struct inode *inode);
|
||||
void (*setup_ds_info)(struct pnfs_ds_commit_info *,
|
||||
struct pnfs_layout_segment *);
|
||||
void (*release_ds_info)(struct pnfs_ds_commit_info *,
|
||||
struct inode *inode);
|
||||
void (*mark_request_commit) (struct nfs_page *req,
|
||||
|
@ -371,6 +373,10 @@ void nfs4_deviceid_purge_client(const struct nfs_client *);
|
|||
/* pnfs_nfs.c */
|
||||
struct pnfs_commit_array *pnfs_alloc_commit_array(size_t n, gfp_t gfp_flags);
|
||||
void pnfs_free_commit_array(struct pnfs_commit_array *p);
|
||||
struct pnfs_commit_array *pnfs_add_commit_array(struct pnfs_ds_commit_info *,
|
||||
struct pnfs_commit_array *,
|
||||
struct pnfs_layout_segment *);
|
||||
|
||||
void pnfs_generic_ds_cinfo_release_lseg(struct pnfs_ds_commit_info *fl_cinfo,
|
||||
struct pnfs_layout_segment *lseg);
|
||||
void pnfs_generic_ds_cinfo_destroy(struct pnfs_ds_commit_info *fl_cinfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue