Re: blocksize_bits question!

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

 



On 4/11/06, Asim <asimkadav@xxxxxxxxx> wrote:
What is blocksize_bits variable in file system drivers ? (in
superblock filling methods)
 
        The number of  bits that make up the filesystem block size. Say if filesystems block size is 512 bytes(s_blocksize field of struct super_block), the s_blocksize_bits =9 (since 2^9=512).
 

Why is set to PAGE_CACHE_SHIFT ?

Eg.

s_blocksize_bits = PAGE_CACHE_SHIFT
 
 set because since s_blocksize = PAGE_CACHE_SIZE
The maximum file system block size is limited by the page cache size (which is 4k on x86 systems).
 
Thayumanavar S.

[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