diff options
author | Trond Myklebust | 2018-06-15 22:31:02 +0200 |
---|---|---|
committer | Trond Myklebust | 2018-06-19 14:52:27 +0200 |
commit | c8bf70735382401a161d9c818e8ea89500812d0c (patch) | |
tree | 972531a2cd646bdb6aaaac128e19902abe06775e /fs/nfs/pnfs.h | |
parent | pNFS: Always free the session slot on error in nfs4_layoutget_handle_exception (diff) | |
download | kernel-qcow2-linux-c8bf70735382401a161d9c818e8ea89500812d0c.tar.gz kernel-qcow2-linux-c8bf70735382401a161d9c818e8ea89500812d0c.tar.xz kernel-qcow2-linux-c8bf70735382401a161d9c818e8ea89500812d0c.zip |
pNFS: Don't send layoutreturn if the layout is already invalid
If the layout was invalidated due to a reboot, then don't try to send
a layoutreturn for it.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index a8f5e6b16749..3fe81424337d 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -801,6 +801,11 @@ static inline void nfs4_lgopen_release(struct nfs4_layoutget *lgp) { } +static inline bool pnfs_layout_is_valid(const struct pnfs_layout_hdr *lo) +{ + return false; +} + #endif /* CONFIG_NFS_V4_1 */ #if IS_ENABLED(CONFIG_NFS_V4_2) |