/fs/nfs/ |
D | pnfs.c | 56 static void pnfs_layoutreturn_before_put_layout_hdr(struct pnfs_layout_hdr *lo); 57 static void pnfs_free_returned_lsegs(struct pnfs_layout_hdr *lo, 252 pnfs_get_layout_hdr(struct pnfs_layout_hdr *lo) in pnfs_get_layout_hdr() argument 254 atomic_inc(&lo->plh_refcount); in pnfs_get_layout_hdr() 265 pnfs_free_layout_hdr(struct pnfs_layout_hdr *lo) in pnfs_free_layout_hdr() argument 267 struct nfs_server *server = NFS_SERVER(lo->plh_inode); in pnfs_free_layout_hdr() 270 if (!list_empty(&lo->plh_layouts)) { in pnfs_free_layout_hdr() 274 list_del_init(&lo->plh_layouts); in pnfs_free_layout_hdr() 277 put_rpccred(lo->plh_lc_cred); in pnfs_free_layout_hdr() 278 return ld->free_layout_hdr(lo); in pnfs_free_layout_hdr() [all …]
|
D | callback_proc.c | 125 struct pnfs_layout_hdr *lo; in nfs_layout_find_inode_by_stateid() local 129 list_for_each_entry(lo, &server->layouts, plh_layouts) { in nfs_layout_find_inode_by_stateid() 131 !nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid() 133 inode = igrab(lo->plh_inode); in nfs_layout_find_inode_by_stateid() 163 struct pnfs_layout_hdr *lo; in nfs_layout_find_inode_by_fh() local 167 list_for_each_entry(lo, &server->layouts, plh_layouts) { in nfs_layout_find_inode_by_fh() 168 nfsi = NFS_I(lo->plh_inode); in nfs_layout_find_inode_by_fh() 171 if (nfsi->layout != lo) in nfs_layout_find_inode_by_fh() 173 inode = igrab(lo->plh_inode); in nfs_layout_find_inode_by_fh() 211 static u32 pnfs_check_callback_stateid(struct pnfs_layout_hdr *lo, in pnfs_check_callback_stateid() argument [all …]
|
D | nfs42proc.c | 345 struct pnfs_layout_hdr *lo; in nfs42_layoutstat_prepare() local 348 lo = NFS_I(inode)->layout; in nfs42_layoutstat_prepare() 349 if (!pnfs_layout_is_valid(lo)) { in nfs42_layoutstat_prepare() 354 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare() 365 struct pnfs_layout_hdr *lo; in nfs42_layoutstat_done() local 379 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done() 380 if (pnfs_layout_is_valid(lo) && in nfs42_layoutstat_done() 382 &lo->plh_stateid)) { in nfs42_layoutstat_done() 389 pnfs_mark_layout_stateid_invalid(lo, &head); in nfs42_layoutstat_done() 398 lo = NFS_I(inode)->layout; in nfs42_layoutstat_done() [all …]
|
D | pnfs.h | 136 void (*return_range) (struct pnfs_layout_hdr *lo, 231 void pnfs_get_layout_hdr(struct pnfs_layout_hdr *lo); 255 void pnfs_put_layout_hdr(struct pnfs_layout_hdr *lo); 256 void pnfs_set_layout_stateid(struct pnfs_layout_hdr *lo, 259 int pnfs_mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, 263 int pnfs_mark_matching_lsegs_return(struct pnfs_layout_hdr *lo, 267 int pnfs_mark_layout_stateid_invalid(struct pnfs_layout_hdr *lo, 294 void pnfs_layoutreturn_free_lsegs(struct pnfs_layout_hdr *lo, 299 void pnfs_generic_layout_insert_lseg(struct pnfs_layout_hdr *lo, 381 static inline bool pnfs_layout_is_valid(const struct pnfs_layout_hdr *lo) in pnfs_layout_is_valid() argument [all …]
|
D | nfs4trace.h | 1550 struct pnfs_layout_hdr *lo, 1554 TP_ARGS(inode, pos, count, iomode, lo, lseg, reason), 1575 if (lo != NULL) { 1577 be32_to_cpu(lo->plh_stateid.seqid); 1579 nfs_stateid_hash(&lo->plh_stateid);
|
D | nfs4proc.c | 8468 struct pnfs_layout_hdr *lo; in nfs4_layoutget_handle_exception() local 8520 lo = NFS_I(inode)->layout; in nfs4_layoutget_handle_exception() 8522 if (!lo || test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags) || in nfs4_layoutget_handle_exception() 8523 !nfs4_stateid_match_other(&lgp->args.stateid, &lo->plh_stateid)) { in nfs4_layoutget_handle_exception() 8533 pnfs_mark_layout_stateid_invalid(lo, &head); in nfs4_layoutget_handle_exception() 8730 struct pnfs_layout_hdr *lo = lrp->args.layout; in nfs4_layoutreturn_release() local 8733 pnfs_layoutreturn_free_lsegs(lo, &lrp->args.stateid, &lrp->args.range, in nfs4_layoutreturn_release()
|
/fs/nfsd/ |
D | nfs4layouts.c | 354 layout_update_len(struct nfsd4_layout_seg *lo, u64 end) in layout_update_len() argument 357 lo->length = NFS4_MAX_UINT64; in layout_update_len() 359 lo->length = end - lo->offset; in layout_update_len() 363 layouts_overlapping(struct nfs4_layout *lo, struct nfsd4_layout_seg *s) in layouts_overlapping() argument 365 if (s->iomode != IOMODE_ANY && s->iomode != lo->lo_seg.iomode) in layouts_overlapping() 367 if (layout_end(&lo->lo_seg) <= s->offset) in layouts_overlapping() 369 if (layout_end(s) <= lo->lo_seg.offset) in layouts_overlapping() 375 layouts_try_merge(struct nfsd4_layout_seg *lo, struct nfsd4_layout_seg *new) in layouts_try_merge() argument 377 if (lo->iomode != new->iomode) in layouts_try_merge() 379 if (layout_end(new) < lo->offset) in layouts_try_merge() [all …]
|
D | nfs4state.c | 219 find_blocked_lock(struct nfs4_lockowner *lo, struct knfsd_fh *fh, in find_blocked_lock() argument 225 list_for_each_entry(cur, &lo->lo_blocked, nbl_list) { in find_blocked_lock() 240 find_or_allocate_block(struct nfs4_lockowner *lo, struct knfsd_fh *fh, in find_or_allocate_block() argument 245 nbl = find_blocked_lock(lo, fh, nn); in find_or_allocate_block() 251 nfsd4_init_cb(&nbl->nbl_cb, lo->lo_owner.so_client, in find_or_allocate_block() 267 remove_blocked_locks(struct nfs4_lockowner *lo) in remove_blocked_locks() argument 269 struct nfs4_client *clp = lo->lo_owner.so_client; in remove_blocked_locks() 276 while (!list_empty(&lo->lo_blocked)) { in remove_blocked_locks() 277 nbl = list_first_entry(&lo->lo_blocked, in remove_blocked_locks() 1226 struct nfs4_lockowner *lo = lockowner(stp->st_stateowner); in nfs4_free_lock_stateid() local [all …]
|
D | nfs4callback.c | 643 struct nfs4_lockowner *lo = (struct nfs4_lockowner *)nbl->nbl_lock.fl_owner; in nfs4_xdr_enc_cb_notify_lock() local 659 encode_stateowner(xdr, &lo->lo_owner); in nfs4_xdr_enc_cb_notify_lock()
|
/fs/nfs/blocklayout/ |
D | blocklayout.c | 439 static void bl_free_layout_hdr(struct pnfs_layout_hdr *lo) in bl_free_layout_hdr() argument 441 struct pnfs_block_layout *bl = BLK_LO2EXT(lo); in bl_free_layout_hdr() 556 bl_alloc_extent(struct xdr_stream *xdr, struct pnfs_layout_hdr *lo, in bl_alloc_extent() argument 577 be->be_device = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode), &id, in bl_alloc_extent() 578 lo->plh_lc_cred, gfp_mask); in bl_alloc_extent() 611 bl_alloc_lseg(struct pnfs_layout_hdr *lo, struct nfs4_layoutget_res *lgr, in bl_alloc_lseg() argument 620 struct pnfs_block_layout *bl = BLK_LO2EXT(lo); in bl_alloc_lseg() 658 status = bl_alloc_extent(&xdr, lo, &lv, &extents, gfp_mask); in bl_alloc_lseg() 703 bl_return_range(struct pnfs_layout_hdr *lo, in bl_return_range() argument 706 struct pnfs_block_layout *bl = BLK_LO2EXT(lo); in bl_return_range()
|
D | blocklayout.h | 148 BLK_LO2EXT(struct pnfs_layout_hdr *lo) in BLK_LO2EXT() argument 150 return container_of(lo, struct pnfs_block_layout, bl_layout); in BLK_LO2EXT()
|
/fs/nfs/filelayout/ |
D | filelayout.c | 127 struct pnfs_layout_hdr *lo = lseg->pls_layout; in filelayout_async_handle_error() local 128 struct inode *inode = lo->plh_inode; in filelayout_async_handle_error() 537 filelayout_check_deviceid(struct pnfs_layout_hdr *lo, in filelayout_check_deviceid() argument 550 d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode), &fl->deviceid, in filelayout_check_deviceid() 551 lo->plh_lc_cred, gfp_flags); in filelayout_check_deviceid() 598 filelayout_check_layout(struct pnfs_layout_hdr *lo, in filelayout_check_layout() argument 892 struct pnfs_layout_hdr *lo; in fl_pnfs_update_layout() local 901 lo = NFS_I(ino)->layout; in fl_pnfs_update_layout() 904 status = filelayout_check_deviceid(lo, fl, gfp_flags); in fl_pnfs_update_layout() 1147 filelayout_free_layout_hdr(struct pnfs_layout_hdr *lo) in filelayout_free_layout_hdr() argument [all …]
|
D | filelayout.h | 76 FILELAYOUT_FROM_HDR(struct pnfs_layout_hdr *lo) in FILELAYOUT_FROM_HDR() argument 78 return container_of(lo, struct nfs4_filelayout, generic_hdr); in FILELAYOUT_FROM_HDR()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.h | 121 FF_LAYOUT_FROM_HDR(struct pnfs_layout_hdr *lo) in FF_LAYOUT_FROM_HDR() argument 123 return container_of(lo, struct nfs4_flexfile_layout, generic_hdr); in FF_LAYOUT_FROM_HDR() 217 unsigned int ff_layout_fetch_ds_ioerr(struct pnfs_layout_hdr *lo,
|
D | flexfilelayoutdev.c | 552 unsigned int do_layout_fetch_ds_ioerr(struct pnfs_layout_hdr *lo, in do_layout_fetch_ds_ioerr() argument 557 struct nfs4_flexfile_layout *flo = FF_LAYOUT_FROM_HDR(lo); in do_layout_fetch_ds_ioerr() 558 struct inode *inode = lo->plh_inode; in do_layout_fetch_ds_ioerr() 579 unsigned int ff_layout_fetch_ds_ioerr(struct pnfs_layout_hdr *lo, in ff_layout_fetch_ds_ioerr() argument 586 ret = do_layout_fetch_ds_ioerr(lo, range, head, maxnum); in ff_layout_fetch_ds_ioerr() 590 do_layout_fetch_ds_ioerr(lo, range, &discard, -1); in ff_layout_fetch_ds_ioerr()
|
D | flexfilelayout.c | 35 static int ff_layout_mirror_prepare_stats(struct pnfs_layout_hdr *lo, 58 ff_layout_free_layout_hdr(struct pnfs_layout_hdr *lo) in ff_layout_free_layout_hdr() argument 62 list_for_each_entry_safe(err, n, &FF_LAYOUT_FROM_HDR(lo)->error_list, in ff_layout_free_layout_hdr() 67 kfree(FF_LAYOUT_FROM_HDR(lo)); in ff_layout_free_layout_hdr() 177 ff_layout_add_mirror(struct pnfs_layout_hdr *lo, in ff_layout_add_mirror() argument 180 struct nfs4_flexfile_layout *ff_layout = FF_LAYOUT_FROM_HDR(lo); in ff_layout_add_mirror() 182 struct inode *inode = lo->plh_inode; in ff_layout_add_mirror() 196 mirror->layout = lo; in ff_layout_add_mirror() 340 ff_layout_add_lseg(struct pnfs_layout_hdr *lo, in ff_layout_add_lseg() argument 344 pnfs_generic_layout_insert_lseg(lo, lseg, in ff_layout_add_lseg() [all …]
|
/fs/ocfs2/ |
D | ocfs2.h | 575 u16 lo, hi; in ocfs2_set_links_count() local 577 lo = nlink; in ocfs2_set_links_count() 580 di->i_links_count = cpu_to_le16(lo); in ocfs2_set_links_count()
|