Print this page
patch lower-case-segops

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs_vnops.c
          +++ new/usr/src/uts/common/fs/nfs/nfs_vnops.c
↓ open down ↓ 4664 lines elided ↑ open up ↑
4665 4665           * A process may not change zones if it has NFS pages mmap'ed
4666 4666           * in, so we can't legitimately get here from the wrong zone.
4667 4667           */
4668 4668          ASSERT(nfs_zone() == VTOMI(vp)->mi_zone);
4669 4669  
4670 4670          rp = VTOR(vp);
4671 4671  
4672 4672          /*
4673 4673           * The way that the address space of this process deletes its mapping
4674 4674           * of this file is via the following call chains:
4675      -         * - as_free()->SEGOP_UNMAP()/segvn_unmap()->VOP_DELMAP()/nfs_delmap()
4676      -         * - as_unmap()->SEGOP_UNMAP()/segvn_unmap()->VOP_DELMAP()/nfs_delmap()
     4675 +         * - as_free()->segop_unmap()/segvn_unmap()->VOP_DELMAP()/nfs_delmap()
     4676 +         * - as_unmap()->segop_unmap()/segvn_unmap()->VOP_DELMAP()/nfs_delmap()
4677 4677           *
4678 4678           * With the use of address space callbacks we are allowed to drop the
4679 4679           * address space lock, a_lock, while executing the NFS operations that
4680 4680           * need to go over the wire.  Returning EAGAIN to the caller of this
4681 4681           * function is what drives the execution of the callback that we add
4682 4682           * below.  The callback will be executed by the address space code
4683 4683           * after dropping the a_lock.  When the callback is finished, since
4684 4684           * we dropped the a_lock, it must be re-acquired and segvn_unmap()
4685 4685           * is called again on the same segment to finish the rest of the work
4686 4686           * that needs to happen during unmapping.
↓ open down ↓ 410 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX