ext2/ext3 superblock

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

 



Hi all,

Ext2/Ext3 superblock stores the buffer corresponding to the disk superblock:

sb->u.ext2_sb->s_sbh = bh;   (fs/ext2/super.c ::547)

Apparently we do this so that to write the superblock all we have to do is mark the buffer dirty.
But how do we know that the buffer pointer is valid ? The buffer could become invalid during shrink_cache or it could later point to something else.

I know i am missing something obvious, but can't figure it out.

Swapnil.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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