diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-01-27 13:07:26 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-16 08:34:28 -0400 |
commit | 59b5639490f51aa604d18064dcf0c2d72eb1decf (patch) | |
tree | 8f56b02e0c36bb22e89290f3c4514690cdb05287 /fs/nfs/pnfs.h | |
parent | 57f188e047731e50cb6af94d473c3c70d3bce7f9 (diff) | |
download | linux-stable-59b5639490f51aa604d18064dcf0c2d72eb1decf.tar.gz linux-stable-59b5639490f51aa604d18064dcf0c2d72eb1decf.tar.bz2 linux-stable-59b5639490f51aa604d18064dcf0c2d72eb1decf.zip |
NFSv4/pnfs: pnfs_set_layout_stateid() should update the layout cred
If the cred assigned to the layout that we're updating differs from
the one used to retrieve the new layout segment, then we need to
update the layout plh_lc_cred field.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 0fafdadc9c8d..cfb89d47c79d 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -267,6 +267,7 @@ bool nfs4_layout_refresh_old_stateid(nfs4_stateid *dst, void pnfs_put_layout_hdr(struct pnfs_layout_hdr *lo); void pnfs_set_layout_stateid(struct pnfs_layout_hdr *lo, const nfs4_stateid *new, + const struct cred *cred, bool update_barrier); int pnfs_mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, struct list_head *tmp_list, |