Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2008 17:24:22 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ufs/ufs ufs_vnops.c
Message-ID:  <200808241724.m7OHObOM034285@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2008-08-24 17:24:22 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ufs          ufs_vnops.c 
  Log:
  SVN rev 182111 on 2008-08-24 17:24:22Z by kib
  
  Revert the r167541: "Remove unneeded getinoquota() call in the
  ufs_access()." The call to getinoquota in ufs_access() serves the
  purpose of instantiating inode dquot from the vn_open(). Since quotas
  are accounted only for the inodes with already attached dquot, removal
  of the call prevented opened inodes from participation in the quota
  calculations.
  
  Since ufs_access() may be called with the vnode being only shared
  locked, upgrade (and then downgrade) vnode lock if calling
  getinoquota().
  
  Reported by:    simon at optinet com
  In collaboration with:  pho
  MFC after:      1 week
  
  Revision  Changes    Path
  1.298     +23 -1     src/sys/ufs/ufs/ufs_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808241724.m7OHObOM034285>