[Ocfs2-devel] [PATCH 2/7] ocfs2: Do not map blocks from local quota file on each write

Jan Kara jack at suse.cz
Fri May 14 01:06:58 PDT 2010


On Thu 13-05-10 16:44:53, Joel Becker wrote:
> On Thu, May 13, 2010 at 09:57:58PM +0200, Jan Kara wrote:
> > There is no need to map offset of local dquot structure to on disk block
> > in each quota write. It is enough to map it just once and store the physical
> > block number in quota structure in memory. Moreover this simplifies locking
> > as we do not have to take ip_alloc_sem from quota write path.
> > 
> > Signed-off-by: Jan Kara <jack at suse.cz>
> 	Am I correct that quota files cannot be shrunk in a running
> filesystem?
  Yes, quota files are only grown when the filesystem is mounted. Shrinking
is done only by fsck.ocfs2.

									Honza
-- 
Jan Kara <jack at suse.cz>
SUSE Labs, CR



More information about the Ocfs2-devel mailing list