Skip to contentSkip to conversation

tmpfs fixes against 2.4.6-pre(2)

PATCH New Christoph Rohland 1 participant 1 message Jul 3, 2001

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

PATCH 1/1 tmpfs fixes against 2.4.6-pre(2)

Hi Linus,

This is the second part of my patches.

Writing out of a mapping of a tmpfs file into the same file can deadlock. This is running in the -ac series since some while.

Please apply
Christoph

include/linux/shmem_fs.h +1 -0
diff -uNr 6-pre8-fix1/include/linux/shmem_fs.h 6-pre8-fix2/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 +29 -21

129 lines not on this page · raw message