Skip to contentSkip to conversation

shmem truncate optimizations and cleanup

PATCH New Christoph Rohland 1 participant 1 message Jan 10, 2001

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

PATCH 1/1 shmem truncate optimizations and cleanup

Hi Alan,

The appended patch speeds up the truncate logic of shmem.c considerably and makes it more readable.

Would you apply it to your -ac series?

I will go on with some cache lookup optimizations and probably read/write support.

Greetings
Christoph

include/linux/shmem_fs.h +1 -0
diff -uNr 4-13-5/include/linux/shmem_fs.h c/include/linux/shmem_fs.h
@@ -19,6 +19,7 @@
 
 struct shmem_inode_info {
 	spinlock_t	lock;
+	unsigned long	max_index;
 	swp_entry_t	i_direct[SHMEM_NR_DIRECT]; /* for the first blocks */
 	swp_entry_t   **i_indirect; /* doubly indirect blocks */
 	unsigned long	swapped;
mm/shmem.c +33 -23

124 lines not on this page · raw message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/