Lines Matching refs:ino
270 pnfs_alloc_layout_hdr(struct inode *ino, gfp_t gfp_flags) in pnfs_alloc_layout_hdr() argument
272 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_alloc_layout_hdr()
273 return ld->alloc_layout_hdr(ino, gfp_flags); in pnfs_alloc_layout_hdr()
1083 pnfs_alloc_init_layoutget_args(struct inode *ino, in pnfs_alloc_init_layoutget_args() argument
1089 struct nfs_server *server = pnfs_find_server(ino, ctx); in pnfs_alloc_init_layoutget_args()
1120 if (ino) { in pnfs_alloc_init_layoutget_args()
1121 loff_t i_size = i_size_read(ino); in pnfs_alloc_init_layoutget_args()
1133 lgp->args.inode = ino; in pnfs_alloc_init_layoutget_args()
1244 struct inode *ino = lo->plh_inode; in pnfs_send_layoutreturn() local
1245 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_send_layoutreturn()
1254 spin_lock(&ino->i_lock); in pnfs_send_layoutreturn()
1256 spin_unlock(&ino->i_lock); in pnfs_send_layoutreturn()
1264 lrp->clp = NFS_SERVER(ino)->nfs_client; in pnfs_send_layoutreturn()
1330 _pnfs_return_layout(struct inode *ino) in _pnfs_return_layout() argument
1333 struct nfs_inode *nfsi = NFS_I(ino); in _pnfs_return_layout()
1345 dprintk("NFS: %s for inode %lu\n", __func__, ino->i_ino); in _pnfs_return_layout()
1347 spin_lock(&ino->i_lock); in _pnfs_return_layout()
1350 spin_unlock(&ino->i_lock); in _pnfs_return_layout()
1358 spin_unlock(&ino->i_lock); in _pnfs_return_layout()
1362 spin_lock(&ino->i_lock); in _pnfs_return_layout()
1365 pnfs_clear_layoutcommit(ino, &tmp_list); in _pnfs_return_layout()
1368 if (NFS_SERVER(ino)->pnfs_curr_ld->return_range) in _pnfs_return_layout()
1369 NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo, &range); in _pnfs_return_layout()
1374 spin_unlock(&ino->i_lock); in _pnfs_return_layout()
1380 spin_unlock(&ino->i_lock); in _pnfs_return_layout()
1420 bool pnfs_roc(struct inode *ino, in pnfs_roc() argument
1425 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_roc()
1436 if (!nfs_have_layout(ino)) in pnfs_roc()
1440 spin_lock(&ino->i_lock); in pnfs_roc()
1449 spin_unlock(&ino->i_lock); in pnfs_roc()
1458 if (nfs4_check_delegation(ino, FMODE_READ)) { in pnfs_roc()
1459 if (nfs4_check_delegation(ino, FMODE_WRITE)) in pnfs_roc()
1512 spin_unlock(&ino->i_lock); in pnfs_roc()
1514 pnfs_layoutcommit_inode(ino, true); in pnfs_roc()
1516 struct pnfs_layoutdriver_type *ld = NFS_SERVER(ino)->pnfs_curr_ld; in pnfs_roc()
1604 bool pnfs_wait_on_layoutreturn(struct inode *ino, struct rpc_task *task) in pnfs_wait_on_layoutreturn() argument
1606 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_wait_on_layoutreturn()
1612 spin_lock(&ino->i_lock); in pnfs_wait_on_layoutreturn()
1615 rpc_sleep_on(&NFS_SERVER(ino)->roc_rpcwaitq, task, NULL); in pnfs_wait_on_layoutreturn()
1618 spin_unlock(&ino->i_lock); in pnfs_wait_on_layoutreturn()
1723 alloc_init_layout_hdr(struct inode *ino, in alloc_init_layout_hdr() argument
1729 lo = pnfs_alloc_layout_hdr(ino, gfp_flags); in alloc_init_layout_hdr()
1737 lo->plh_inode = ino; in alloc_init_layout_hdr()
1744 pnfs_find_alloc_layout(struct inode *ino, in pnfs_find_alloc_layout() argument
1747 __releases(&ino->i_lock) in pnfs_find_alloc_layout()
1748 __acquires(&ino->i_lock) in pnfs_find_alloc_layout()
1750 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_find_alloc_layout()
1753 dprintk("%s Begin ino=%p layout=%p\n", __func__, ino, nfsi->layout); in pnfs_find_alloc_layout()
1757 spin_unlock(&ino->i_lock); in pnfs_find_alloc_layout()
1758 new = alloc_init_layout_hdr(ino, ctx, gfp_flags); in pnfs_find_alloc_layout()
1759 spin_lock(&ino->i_lock); in pnfs_find_alloc_layout()
1850 struct inode *ino, int iomode) in pnfs_within_mdsthreshold() argument
1853 struct nfs_inode *nfsi = NFS_I(ino); in pnfs_within_mdsthreshold()
1854 loff_t fsize = i_size_read(ino); in pnfs_within_mdsthreshold()
1963 pnfs_update_layout(struct inode *ino, in pnfs_update_layout() argument
1977 struct nfs_server *server = NFS_SERVER(ino); in pnfs_update_layout()
1987 if (!pnfs_enabled_sb(NFS_SERVER(ino))) { in pnfs_update_layout()
1988 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
1993 if (pnfs_within_mdsthreshold(ctx, ino, iomode)) { in pnfs_update_layout()
1994 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2004 spin_lock(&ino->i_lock); in pnfs_update_layout()
2005 lo = pnfs_find_alloc_layout(ino, ctx, gfp_flags); in pnfs_update_layout()
2007 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2009 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2016 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2024 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2035 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2049 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2055 trace_pnfs_update_layout(ino, pos, count, iomode, lo, in pnfs_update_layout()
2060 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2067 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2086 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2097 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2104 trace_pnfs_update_layout(ino, pos, count, in pnfs_update_layout()
2112 spin_lock(&ino->i_lock); in pnfs_update_layout()
2118 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2123 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2135 lgp = pnfs_alloc_init_layoutget_args(ino, ctx, &stateid, &arg, gfp_flags); in pnfs_update_layout()
2138 trace_pnfs_update_layout(ino, pos, count, iomode, lo, NULL, in pnfs_update_layout()
2148 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2176 trace_pnfs_update_layout(ino, pos, count, in pnfs_update_layout()
2188 trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, in pnfs_update_layout()
2194 __func__, ino->i_sb->s_id, in pnfs_update_layout()
2195 (unsigned long long)NFS_FILEID(ino), in pnfs_update_layout()
2202 spin_unlock(&ino->i_lock); in pnfs_update_layout()
2228 _pnfs_grab_empty_layout(struct inode *ino, struct nfs_open_context *ctx) in _pnfs_grab_empty_layout() argument
2232 spin_lock(&ino->i_lock); in _pnfs_grab_empty_layout()
2233 lo = pnfs_find_alloc_layout(ino, ctx, nfs_io_gfp_mask()); in _pnfs_grab_empty_layout()
2245 spin_unlock(&ino->i_lock); in _pnfs_grab_empty_layout()
2246 _add_to_server_list(lo, NFS_SERVER(ino)); in _pnfs_grab_empty_layout()
2250 spin_unlock(&ino->i_lock); in _pnfs_grab_empty_layout()
2258 struct inode *ino = data->dentry->d_inode; in _lgopen_prepare_attached() local
2270 (i_size_read(ino) == 0 || ino->i_mapping->nrpages != 0)) in _lgopen_prepare_attached()
2273 lo = _pnfs_grab_empty_layout(ino, ctx); in _lgopen_prepare_attached()
2276 lgp = pnfs_alloc_init_layoutget_args(ino, ctx, ¤t_stateid, &rng, in _lgopen_prepare_attached()
2293 struct inode *ino = data->dentry->d_inode; in _lgopen_prepare_floating() local
2302 lgp = pnfs_alloc_init_layoutget_args(ino, ctx, ¤t_stateid, &rng, in _lgopen_prepare_floating()
2330 void pnfs_parse_lgopen(struct inode *ino, struct nfs4_layoutget *lgp, in pnfs_parse_lgopen() argument
2335 struct nfs_server *srv = NFS_SERVER(ino); in pnfs_parse_lgopen()
2364 lo = _pnfs_grab_empty_layout(ino, ctx); in pnfs_parse_lgopen()
2396 struct inode *ino = lo->plh_inode; in pnfs_layout_process() local
2403 lseg = NFS_SERVER(ino)->pnfs_curr_ld->alloc_lseg(lo, res, lgp->gfp_flags); in pnfs_layout_process()
2415 spin_lock(&ino->i_lock); in pnfs_layout_process()
2457 spin_unlock(&ino->i_lock); in pnfs_layout_process()
2462 spin_unlock(&ino->i_lock); in pnfs_layout_process()
2464 NFS_SERVER(ino)->pnfs_curr_ld->free_lseg(lseg); in pnfs_layout_process()