NFSv4.1/pNFS: Add a helper to mark the layout as returned
[deliverable/linux.git] / fs / nfs / callback_proc.c
index 807eb6ef4f91631264a140758e7e314ca4885771..716cbff244501d57c616931c2d0ac059db3d7394 100644 (file)
@@ -192,6 +192,7 @@ static u32 initiate_file_draining(struct nfs_client *clp,
                NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo,
                        &args->cbl_range);
        }
+       pnfs_mark_layout_returned_if_empty(lo);
 unlock:
        spin_unlock(&ino->i_lock);
        pnfs_free_lseg_list(&free_me_list);
This page took 0.025005 seconds and 5 git commands to generate.