]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs-obj: decode layout, alloc/free lseg
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 22 May 2011 16:50:20 +0000 (19:50 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Sun, 29 May 2011 17:53:06 +0000 (20:53 +0300)
commit39e50556b5c0afbde7367edc8399840998f58b9e
tree767732b80aaa48a97e86af2c6f0ec7a3120219f2
parentb227b7189c18c19d0aa4e70d3b4d52085ade8eb4
pnfs-obj: decode layout, alloc/free lseg

objlayout_alloc_lseg prepares an xdr_stream and calls the
raid engins objio_alloc_lseg() to allocate a private
pnfs_layout_segment.

objio_osd.c::objio_alloc_lseg() uses passed xdr_stream to
decode and store the layout_segment information in an
objio_segment struct, using the pnfs_osd_xdr.h API for
the actual parsing the layout xdr.

objlayout_free_lseg calls objio_free_lseg() to free the
allocated space.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
[gfp_flags]
[removed "extern" from function definitions]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
fs/nfs/objlayout/Kbuild
fs/nfs/objlayout/objio_osd.c
fs/nfs/objlayout/objlayout.c [new file with mode: 0644]
fs/nfs/objlayout/objlayout.h [new file with mode: 0644]