summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust2016-01-04 18:52:53 +0100
committerTrond Myklebust2016-01-04 18:52:53 +0100
commite144e5391cf0881c9d64750dca8c592f6b5f0378 (patch)
treef0226d94dfdcc22532a18527df322aedcec40790 /fs/nfs/pnfs.h
parentNFSv4.1/pNFS: Cleanup pnfs_mark_matching_lsegs_invalid() (diff)
downloadkernel-qcow2-linux-e144e5391cf0881c9d64750dca8c592f6b5f0378.tar.gz
kernel-qcow2-linux-e144e5391cf0881c9d64750dca8c592f6b5f0378.tar.xz
kernel-qcow2-linux-e144e5391cf0881c9d64750dca8c592f6b5f0378.zip
NFSv4.1/pnfs: Cleanup copying of pnfs_layout_range structures
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 3d0f513a4a77..dcc76335fd4b 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -578,6 +578,13 @@ pnfs_mark_layout_returned_if_empty(struct pnfs_layout_hdr *lo)
set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags);
}
+static inline void
+pnfs_copy_range(struct pnfs_layout_range *dst,
+ const struct pnfs_layout_range *src)
+{
+ memcpy(dst, src, sizeof(*dst));
+}
+
extern unsigned int layoutstats_timer;
#ifdef NFS_DEBUG