Skip to contentSkip to conversation

Page size andFS blocksize

DISCUSSION Ravi 2 participants 3 messages Nov 17, 2002 – Nov 18, 2002 Memory management

lore
Share & tools
lore

Ravi

author
#0 lore raw

Hi,
I was browsing the block device read/write code in fs/buffer.c (kernel
version 2.4.18).

Quoted 1 line

From waht I understood, there is an implicit assumption that

filesystem block sizes
are never more than the size of a single page. I say this because I couldn't figure
out how to specify if the page being read is part of a block. (The buffer_head structure
has no member that says 'offset within the block').
Have I read the code right, or am I missing something? And has this
changed in
2.5?

-Thanks,
Ravi.

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#1 lore raw

Hi,

Quoted 5 lines · Ravi

I was browsing the block device read/write code in fs/buffer.c (kernel
version 2.4.18).

Quoted 1 line

From waht I understood, there is an implicit assumption that

filesystem block sizes
are never more than the size of a single page.

Correct.

Quoted 3 lines

And has this
changed in
2.5?

No.

Cheers,
Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

author
#2 lore raw
Quoted 7 lines
Quoted 5 lines

I was browsing the block device read/write code in fs/buffer.c (kernel version 2.4.18). From waht I understood, there is an implicit assumption that filesystem block sizes are never more than the size of a single page.

Correct.

Why is this so? Is it because filesystems cannot
read/write parts of a block? Or is it just that
there is no use for such a feature?

-Thanks,
Ravi.

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/