Skip to contentSkip to conversation

tmpfs fixes against 2.4.6-pre

PATCH New Christoph Rohland 1 participant 1 message Jun 21, 2001

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

PATCH 1/1 tmpfs fixes against 2.4.6-pre

Hi Linus,

the appended patch fixes several tmpfs problems:

1) writing out of a mapping of a tmpfs file into the same file can deadlock
2) shmem_remount_fs garbles parameters which are not supplied
3) shmem_file_setup should check the maximum size

Please apply
Christoph

include/linux/shmem_fs.h +1 -0
diff -uNr 6-pre5/include/linux/shmem_fs.h 6-pre5-fix/include/linux/shmem_fs.h
@@ -19,6 +19,7 @@
 
 struct shmem_inode_info {
 	spinlock_t	lock;
+	struct semaphore sem;
 	unsigned long	max_index;
 	swp_entry_t	i_direct[SHMEM_NR_DIRECT]; /* for the first blocks */
 	swp_entry_t   **i_indirect; /* doubly indirect blocks */
mm/shmem.c +44 -29

198 lines not on this page · raw message