s_blocksize_bits field in ext2 superblock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi
in ext2_free_blocks(struct inode *...) function of ext2 file system, there
is an if loop

if(!ext2_clear_bit(bit+i,bh->b_data)){ .....}
else { DQUOT_FREE_BLOCK()}

but by this time there is an error check done if the block bitmap is
loaded into memory ot not by load_block_bitmap(bh,bitmap_no)
so why is an else loop defined.. Also in
DQUOT_FREE_BLOCK_NODIRTY(..)there is
inode->i_blocks -= nr << (inode->i_sb->s_blocksize_bits - 9)
wt does this represent.. Also wt does

sb->s_blocksize_bits = le32_to_cpu(EXT2_SB(sb)->s_es->s_log_block_size) + 10;

in ext2/super.c represent??
Wt does s_log_block_size represent.. Is it 1024 for a 1KB block size..
Does s_blocksize_bits ultimately represent 1024*8 if block size is 1 KB..

bye
A linux lover

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux