Searched refs:objlay (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/fs/nfs/objlayout/ |
H A D | objlayout.c | 53 struct objlayout *objlay; objlayout_alloc_layout_hdr() local 55 objlay = kzalloc(sizeof(struct objlayout), gfp_flags); objlayout_alloc_layout_hdr() 56 if (!objlay) objlayout_alloc_layout_hdr() 58 spin_lock_init(&objlay->lock); objlayout_alloc_layout_hdr() 59 INIT_LIST_HEAD(&objlay->err_list); objlayout_alloc_layout_hdr() 60 dprintk("%s: Return %p\n", __func__, objlay); objlayout_alloc_layout_hdr() 61 return &objlay->pnfs_layout; objlayout_alloc_layout_hdr() 70 struct objlayout *objlay = OBJLAYOUT(lo); objlayout_free_layout_hdr() local 72 dprintk("%s: objlay %p\n", __func__, objlay); objlayout_free_layout_hdr() 74 WARN_ON(!list_empty(&objlay->err_list)); objlayout_free_layout_hdr() 75 kfree(objlay); objlayout_free_layout_hdr() 179 struct objlayout *objlay = oir->objlay; objlayout_iodone() local 181 spin_lock(&objlay->lock); objlayout_iodone() 182 objlay->delta_space_valid = OBJ_DSU_INVALID; objlayout_iodone() 183 list_add(&objlay->err_list, &oir->err_list); objlayout_iodone() 184 spin_unlock(&objlay->lock); objlayout_iodone() 375 struct objlayout *objlay = OBJLAYOUT(pnfslay); objlayout_encode_layoutcommit() local 381 spin_lock(&objlay->lock); objlayout_encode_layoutcommit() 382 lou.dsu_valid = (objlay->delta_space_valid == OBJ_DSU_VALID); objlayout_encode_layoutcommit() 383 lou.dsu_delta = objlay->delta_space_used; objlayout_encode_layoutcommit() 384 objlay->delta_space_used = 0; objlayout_encode_layoutcommit() 385 objlay->delta_space_valid = OBJ_DSU_INIT; objlayout_encode_layoutcommit() 386 lou.olu_ioerr_flag = !list_empty(&objlay->err_list); objlayout_encode_layoutcommit() 387 spin_unlock(&objlay->lock); objlayout_encode_layoutcommit() 471 encode_accumulated_error(struct objlayout *objlay, __be32 *p) encode_accumulated_error() argument 476 list_for_each_entry_safe(oir, tmp, &objlay->err_list, err_list) { encode_accumulated_error() 511 struct objlayout *objlay = OBJLAYOUT(pnfslay); objlayout_encode_layoutreturn() local 519 spin_lock(&objlay->lock); objlayout_encode_layoutreturn() 521 list_for_each_entry_safe(oir, tmp, &objlay->err_list, err_list) { objlayout_encode_layoutreturn() 564 encode_accumulated_error(objlay, last_xdr); objlayout_encode_layoutreturn() 571 spin_unlock(&objlay->lock); objlayout_encode_layoutreturn()
|
H A D | objlayout.h | 78 struct objlayout *objlay; member in struct:objlayout_io_res 100 oir->objlay = OBJLAYOUT(pnfs_layout_type); objlayout_init_ioerrs() 133 objlayout_add_delta_space_used(struct objlayout *objlay, s64 space_used) objlayout_add_delta_space_used() argument 139 spin_lock(&objlay->lock); objlayout_add_delta_space_used() 140 if (objlay->delta_space_valid != OBJ_DSU_INVALID) { objlayout_add_delta_space_used() 141 objlay->delta_space_valid = OBJ_DSU_VALID; objlayout_add_delta_space_used() 142 objlay->delta_space_used += space_used; objlayout_add_delta_space_used() 144 spin_unlock(&objlay->lock); objlayout_add_delta_space_used()
|
Completed in 35 milliseconds