]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.suse/novfs-patch-2.6.27
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.suse / novfs-patch-2.6.27
1 From: Jeff Mahoney <jeffm@suse.com>
2 Subject: [PATCH] novfs: mapping->tree_lock is a spin_lock
3
4 mapping->tree_lock changed from a read_lock to a spin_lock in 2.6.27.
5
6 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
7 ---
8 fs/novfs/inode.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/fs/novfs/inode.c
12 +++ b/fs/novfs/inode.c
13 @@ -2029,7 +2029,7 @@ int novfs_a_writepages(struct address_sp
14 memset(pages, 0,
15 sizeof(struct page *) * max_page_lookup);
16
17 - read_lock_irq(&mapping->tree_lock);
18 + spin_lock_irq(&mapping->tree_lock);
19
20 /*
21 * Need to ask for one less then max_page_lookup or we
22 @@ -2063,7 +2063,7 @@ int novfs_a_writepages(struct address_sp
23 page_cache_get(pages[i]);
24 }
25
26 - read_unlock_irq(&mapping->tree_lock);
27 + spin_unlock_irq(&mapping->tree_lock);
28
29 if (nr_pages) {
30 index = pages[nr_pages - 1]->index + 1;