• Home
  • Raw
  • Download

Lines Matching refs:nfsi

285 	struct nfs_inode *nfsi = NFS_I(lo->plh_inode);  in pnfs_detach_layout_hdr()  local
287 nfsi->layout = NULL; in pnfs_detach_layout_hdr()
289 nfsi->write_io = 0; in pnfs_detach_layout_hdr()
290 nfsi->read_io = 0; in pnfs_detach_layout_hdr()
727 pnfs_destroy_layout(struct nfs_inode *nfsi) in pnfs_destroy_layout() argument
732 spin_lock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout()
733 lo = nfsi->layout; in pnfs_destroy_layout()
739 spin_unlock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout()
741 nfs_commit_inode(&nfsi->vfs_inode, 0); in pnfs_destroy_layout()
744 spin_unlock(&nfsi->vfs_inode.i_lock); in pnfs_destroy_layout()
1083 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_clear_layoutcommit() local
1086 if (!test_and_clear_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) in pnfs_clear_layoutcommit()
1088 list_for_each_entry_safe(lseg, tmp, &nfsi->layout->plh_segs, pls_list) { in pnfs_clear_layoutcommit()
1262 struct nfs_inode *nfsi = NFS_I(ino); in _pnfs_return_layout() local
1271 lo = nfsi->layout; in _pnfs_return_layout()
1352 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_roc() local
1367 lo = nfsi->layout; in pnfs_roc()
1390 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in pnfs_roc()
1528 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_wait_on_layoutreturn() local
1535 lo = nfsi->layout; in pnfs_wait_on_layoutreturn()
1672 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_find_alloc_layout() local
1675 dprintk("%s Begin ino=%p layout=%p\n", __func__, ino, nfsi->layout); in pnfs_find_alloc_layout()
1677 if (nfsi->layout != NULL) in pnfs_find_alloc_layout()
1683 if (likely(nfsi->layout == NULL)) { /* Won the race? */ in pnfs_find_alloc_layout()
1684 nfsi->layout = new; in pnfs_find_alloc_layout()
1689 pnfs_get_layout_hdr(nfsi->layout); in pnfs_find_alloc_layout()
1690 return nfsi->layout; in pnfs_find_alloc_layout()
1775 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_within_mdsthreshold() local
1795 nfsi->read_io); in pnfs_within_mdsthreshold()
1797 if (nfsi->read_io < t->rd_io_sz) in pnfs_within_mdsthreshold()
1810 nfsi->write_io); in pnfs_within_mdsthreshold()
1812 if (nfsi->write_io < t->wr_io_sz) in pnfs_within_mdsthreshold()
2921 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_set_layoutcommit() local
2925 if (!test_and_set_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) { in pnfs_set_layoutcommit()
2926 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit()
2930 } else if (end_pos > nfsi->layout->plh_lwb) in pnfs_set_layoutcommit()
2931 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit()
2938 __func__, lseg, nfsi->layout->plh_lwb); in pnfs_set_layoutcommit()
2969 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_layoutcommit_inode() local
2979 if (test_and_set_bit(NFS_INO_LAYOUTCOMMITTING, &nfsi->flags)) { in pnfs_layoutcommit_inode()
2982 status = wait_on_bit_lock_action(&nfsi->flags, in pnfs_layoutcommit_inode()
2998 if (!test_and_clear_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags)) in pnfs_layoutcommit_inode()
3004 end_pos = nfsi->layout->plh_lwb; in pnfs_layoutcommit_inode()
3006 nfs4_stateid_copy(&data->args.stateid, &nfsi->layout->plh_stateid); in pnfs_layoutcommit_inode()
3010 data->cred = get_cred(nfsi->layout->plh_lc_cred); in pnfs_layoutcommit_inode()
3025 set_bit(NFS_INO_LAYOUTCOMMIT, &nfsi->flags); in pnfs_layoutcommit_inode()
3026 if (end_pos > nfsi->layout->plh_lwb) in pnfs_layoutcommit_inode()
3027 nfsi->layout->plh_lwb = end_pos; in pnfs_layoutcommit_inode()
3073 struct nfs_inode *nfsi = NFS_I(inode); in pnfs_report_layoutstat() local
3084 if (test_and_set_bit(NFS_INO_LAYOUTSTATS, &nfsi->flags)) in pnfs_report_layoutstat()
3120 clear_bit(NFS_INO_LAYOUTSTATS, &nfsi->flags); in pnfs_report_layoutstat()