Skip to content

Commit ad3c436

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFSv4/pNFS: Remove redundant call to unhash the layout
The layout will be automatically unhashed on final release of the reference count. Signed-off-by: Trond Myklebust <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 42375c2 commit ad3c436

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfs/pnfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,6 @@ pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp,
858858
break;
859859
inode = pnfs_grab_inode_layout_hdr(lo);
860860
if (inode != NULL) {
861-
if (test_and_clear_bit(NFS_LAYOUT_HASHED, &lo->plh_flags))
862-
list_del_rcu(&lo->plh_layouts);
863861
if (pnfs_layout_add_bulk_destroy_list(inode,
864862
layout_list))
865863
continue;

0 commit comments

Comments
 (0)