[BACK]Return to vfs_syscalls.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/vfs_syscalls.c between version 1.484 and 1.485

version 1.484, 2014/06/14 11:37:35 version 1.485, 2014/06/26 01:46:03
Line 1706  vfs__fhfree(fhandle_t *fhp)
Line 1706  vfs__fhfree(fhandle_t *fhp)
 {  {
         size_t fhsize;          size_t fhsize;
   
         if (fhp == NULL) {  
                 return;  
         }  
         fhsize = FHANDLE_SIZE(fhp);          fhsize = FHANDLE_SIZE(fhp);
         kmem_free(fhp, fhsize);          kmem_free(fhp, fhsize);
 }  }
Line 1756  vfs_composefh_alloc(struct vnode *vp, fh
Line 1753  vfs_composefh_alloc(struct vnode *vp, fh
         size_t fidsize;          size_t fidsize;
         int error;          int error;
   
         *fhpp = NULL;  
         mp = vp->v_mount;          mp = vp->v_mount;
         fidsize = 0;          fidsize = 0;
         error = VFS_VPTOFH(vp, NULL, &fidsize);          error = VFS_VPTOFH(vp, NULL, &fidsize);
Line 1826  vfs_copyinfh_alloc(const void *ufhp, siz
Line 1822  vfs_copyinfh_alloc(const void *ufhp, siz
         fhandle_t *fhp;          fhandle_t *fhp;
         int error;          int error;
   
         *fhpp = NULL;  
         if (fhsize > FHANDLE_SIZE_MAX) {          if (fhsize > FHANDLE_SIZE_MAX) {
                 return EINVAL;                  return EINVAL;
         }          }
Line 1915  sys___getfh30(struct lwp *l, const struc
Line 1910  sys___getfh30(struct lwp *l, const struc
         error = vfs_composefh_alloc(vp, &fh);          error = vfs_composefh_alloc(vp, &fh);
         vput(vp);          vput(vp);
         if (error != 0) {          if (error != 0) {
                 goto out;                  return error;
         }          }
         error = copyin(SCARG(uap, fh_size), &usz, sizeof(size_t));          error = copyin(SCARG(uap, fh_size), &usz, sizeof(size_t));
         if (error != 0) {          if (error != 0) {

Legend:
Removed from v.1.484  
changed lines
  Added in v.1.485

CVSweb <webmaster@jp.NetBSD.org>