allow tmpfs bigger than 1GB on s390x
Subsystems (2)
PATCH 1/1 allow tmpfs bigger than 1GB on s390x
Hi Martin,
Here is the patch which implements triple indirect blocks in tmpfs.
For the rest of the word: This is needed since s390x is a 64 Bit platform with pagesize of 4k :-(
It is on top of my other tmpfs fixes which you can find at ftp://ftp.sap.com/pub/linuxlab/people/cr
Greetings
Christoph
include/linux/shmem_fs.h +2 -2
@@ -22,9 +22,9 @@struct shmem_inode_info {spinlock_t lock;struct semaphore sem; -unsigned long max_index; +unsigned long next_index;swp_entry_t i_direct[SHMEM_NR_DIRECT ];/* for the first blocks */ -swp_entry_t **i_indirect;/* doubly indirect blocks */ +void **i_indirect;/* indirect blocks */ unsigned long swapped;int locked;/* into memory */ struct list_head list;
mm/shmem.c +201 -78
380 lines not on this page · raw message