how to calculate the journal-blocks when try to start a handle? | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
|
Hi, all.
in ext3, when we try to make an entry under a
directory, ext3_mkdir/ext3_create/... will start a handle :
handle = ext3_journal_start(dir, EXT3_DATA_TRANS_BLOCKS(dir->i_sb) +
EXT3_INDEX_EXTRA_TRANS_BLOCKS + 3
+2*EXT3_QUOTA_INIT_BLOCKS(dir->i_sb));
"EXT3_DATA_TRANS_BLOCKS(dir->i_sb)" is for modifying those
indirect-blocks and related bitmap/BG blocks
"EXT3_QUOTA_INIT_BLOCKS(dir->i_sb)" is for modify the blocks in
quota-files (both user-quota-file and group-quota-file)
my question is: why "EXT3_INDEX_EXTRA_TRANS_BLOCKS " was defined to be
8 and what the extra "3" is for ?
thanks everyone. :-) Payphone
LIOU
2008-04-25
|
[Newbies FAQ] [Kernel List] [Site Home] [IETF Annouce] [Git] [Networking] [Security] [Bugtraq] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux Networking] [Linux RAID] [Linux SCSI] [Linux ACPI] [DDR & Rambus] [UNIX Filesystems] [Linux Resources]
![]() |
![]() |