diff options
-rw-r--r-- | fs/nfs/nfs4super.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c index 75090feeafad..d91898193b2f 100644 --- a/fs/nfs/nfs4super.c +++ b/fs/nfs/nfs4super.c | |||
@@ -91,10 +91,11 @@ static void nfs4_evict_inode(struct inode *inode) | |||
91 | { | 91 | { |
92 | truncate_inode_pages_final(&inode->i_data); | 92 | truncate_inode_pages_final(&inode->i_data); |
93 | clear_inode(inode); | 93 | clear_inode(inode); |
94 | pnfs_return_layout(inode); | ||
95 | pnfs_destroy_layout(NFS_I(inode)); | ||
96 | /* If we are holding a delegation, return it! */ | 94 | /* If we are holding a delegation, return it! */ |
97 | nfs_inode_return_delegation_noreclaim(inode); | 95 | nfs_inode_return_delegation_noreclaim(inode); |
96 | /* Note that above delegreturn would trigger pnfs return-on-close */ | ||
97 | pnfs_return_layout(inode); | ||
98 | pnfs_destroy_layout(NFS_I(inode)); | ||
98 | /* First call standard NFS clear_inode() code */ | 99 | /* First call standard NFS clear_inode() code */ |
99 | nfs_clear_inode(inode); | 100 | nfs_clear_inode(inode); |
100 | } | 101 | } |