diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-19 13:36:36 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-27 16:34:34 -0400 |
commit | c21e7168848d4ff4158120dbd4464f0d5cfb1456 (patch) | |
tree | 57f6b908524be9d5c7769e60bff7b8794390b5e2 /fs/nfs/pnfs.h | |
parent | d7242c4641fba521a1ea9dbccb11a40cf38cd912 (diff) | |
download | linux-stable-c21e7168848d4ff4158120dbd4464f0d5cfb1456.tar.gz linux-stable-c21e7168848d4ff4158120dbd4464f0d5cfb1456.tar.bz2 linux-stable-c21e7168848d4ff4158120dbd4464f0d5cfb1456.zip |
NFSv4/pnfs: Support a list of commit arrays in struct pnfs_ds_commit_info
When we have multiple layout segments with different lists of mirrored
data, we need to track the commits on a per layout segment basis.
This patch adds a list to support this tracking in struct
pnfs_ds_commit_info.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index f6b1099aa151..b293afb48d04 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -463,6 +463,12 @@ pnfs_get_ds_info(struct inode *inode) } static inline void +pnfs_init_ds_commit_info(struct pnfs_ds_commit_info *fl_cinfo) +{ + INIT_LIST_HEAD(&fl_cinfo->commits); +} + +static inline void pnfs_generic_mark_devid_invalid(struct nfs4_deviceid_node *node) { set_bit(NFS_DEVICEID_INVALID, &node->flags); @@ -759,6 +765,11 @@ pnfs_get_ds_info(struct inode *inode) return NULL; } +static inline void +pnfs_init_ds_commit_info(struct pnfs_ds_commit_info *fl_cinfo) +{ +} + static inline bool pnfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg, struct nfs_commit_info *cinfo, u32 ds_commit_idx) |