Pierwsza strona Wstecz Kontynuuj Ostatnia strona Przegląd Grafika
struct address_space (reminder from VM)
address_space object represents inode which hosts data of some pages and defines how to read/write them on disk
Page in page cache is represented as pointer to address_space object and index – i.e. offset in page units in file
As reading/writing files is unified using page cache, filesystems define only address_space_operations (e.g. readpage, writepage) and they do not care if file is written using read/write or using mmap – this is handled by pagecache layer