Skip to contentSkip to conversation

allow tmpfs bigger than 1GB on s390x

PATCH New Christoph Rohland 1 participant 1 message May 15, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
diff -uNr 4-mSsas/include/linux/shmem_fs.h 4-mSsasb/include/linux/shmem_fs.h
@@ -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