* [uml-devel] [patch 5/7] uml - hostfs: avoid buffers
@ 2005-04-24 18:19 blaisorblade
0 siblings, 0 replies; only message in thread
From: blaisorblade @ 2005-04-24 18:19 UTC (permalink / raw)
To: akpm; +Cc: jdike, bstroesser, linux-kernel, user-mode-linux-devel,
blaisorblade
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Use this:
.set_page_dirty = __set_page_dirty_nobuffers,
We already dropped the inclusion of <linux/buffer_head.h>, and we don't have
a backing block device for this FS.
"Without having looked at it, I'm sure that hostfs does not use
buffer_heads. So setting your ->set_page_dirty a_op to point at
__set_page_dirty_nobuffers() is a reasonable thing to do - it'll provide a
slight speedup."
This speedup is one less spinlock held and one less conditional branch, which
isn't bad.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
linux-2.6.12-paolo/fs/hostfs/hostfs_kern.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN fs/hostfs/hostfs_kern.c~uml-hostfs-avoid-buffers fs/hostfs/hostfs_kern.c
--- linux-2.6.12/fs/hostfs/hostfs_kern.c~uml-hostfs-avoid-buffers 2005-04-24 20:17:05.000000000 +0200
+++ linux-2.6.12-paolo/fs/hostfs/hostfs_kern.c 2005-04-24 20:17:05.000000000 +0200
@@ -521,7 +521,7 @@ int hostfs_commit_write(struct file *fil
static struct address_space_operations hostfs_aops = {
.writepage = hostfs_writepage,
.readpage = hostfs_readpage,
-/* .set_page_dirty = __set_page_dirty_nobuffers, */
+ .set_page_dirty = __set_page_dirty_nobuffers,
.prepare_write = hostfs_prepare_write,
.commit_write = hostfs_commit_write
};
_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-24 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-24 18:19 [uml-devel] [patch 5/7] uml - hostfs: avoid buffers blaisorblade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox