]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-aufs2-no-const-grsec.patch
- updated to 2.6.37.2
[packages/kernel.git] / kernel-aufs2-no-const-grsec.patch
1 --- linux-2.6.37/include/linux/fs.h.org 2011-01-17 10:47:08.657197582 +0100
2 +++ linux-2.6.37/include/linux/fs.h     2011-01-17 10:48:36.572409097 +0100
3 @@ -623,42 +623,42 @@
4                 unsigned long, unsigned long);
5  
6  struct address_space_operations {
7 -       int (* const writepage)(struct page *page, struct writeback_control *wbc);
8 -       int (* const readpage)(struct file *, struct page *);
9 -       void (* const sync_page)(struct page *);
10 +       int (* writepage)(struct page *page, struct writeback_control *wbc);
11 +       int (* readpage)(struct file *, struct page *);
12 +       void (* sync_page)(struct page *);
13  
14         /* Write back some dirty pages from this mapping. */
15 -       int (* const writepages)(struct address_space *, struct writeback_control *);
16 +       int (* writepages)(struct address_space *, struct writeback_control *);
17  
18         /* Set a page dirty.  Return true if this dirtied it */
19 -       int (* const set_page_dirty)(struct page *page);
20 +       int (* set_page_dirty)(struct page *page);
21  
22 -       int (* const readpages)(struct file *filp, struct address_space *mapping,
23 +       int (* readpages)(struct file *filp, struct address_space *mapping,
24                         struct list_head *pages, unsigned nr_pages);
25  
26 -       int (* const write_begin)(struct file *, struct address_space *mapping,
27 +       int (* write_begin)(struct file *, struct address_space *mapping,
28                                 loff_t pos, unsigned len, unsigned flags,
29                                 struct page **pagep, void **fsdata);
30 -       int (* const write_end)(struct file *, struct address_space *mapping,
31 +       int (* write_end)(struct file *, struct address_space *mapping,
32                                 loff_t pos, unsigned len, unsigned copied,
33                                 struct page *page, void *fsdata);
34  
35         /* Unfortunately this kludge is needed for FIBMAP. Don't use it */
36 -       sector_t (* const bmap)(struct address_space *, sector_t);
37 -       void (* const invalidatepage) (struct page *, unsigned long);
38 -       int (* const releasepage) (struct page *, gfp_t);
39 -       void (* const freepage)(struct page *);
40 -       ssize_t (* const direct_IO)(int, struct kiocb *, const struct iovec *iov,
41 +       sector_t (* bmap)(struct address_space *, sector_t);
42 +       void (* invalidatepage) (struct page *, unsigned long);
43 +       int (* releasepage) (struct page *, gfp_t);
44 +       void (* freepage)(struct page *);
45 +       ssize_t (* direct_IO)(int, struct kiocb *, const struct iovec *iov,
46                         loff_t offset, unsigned long nr_segs);
47 -       int (* const get_xip_mem)(struct address_space *, pgoff_t, int,
48 +       int (* get_xip_mem)(struct address_space *, pgoff_t, int,
49                                                 void **, unsigned long *);
50         /* migrate the contents of a page to the specified target */
51 -       int (* const migratepage) (struct address_space *,
52 +       int (* migratepage) (struct address_space *,
53                         struct page *, struct page *);
54 -       int (* const launder_page) (struct page *);
55 -       int (* const is_partially_uptodate) (struct page *, read_descriptor_t *,
56 +       int (* launder_page) (struct page *);
57 +       int (* is_partially_uptodate) (struct page *, read_descriptor_t *,
58                                         unsigned long);
59 -       int (* const error_remove_page)(struct address_space *, struct page *);
60 +       int (* error_remove_page)(struct address_space *, struct page *);
61  };
62  
63  /*
64 @@ -1098,18 +1098,18 @@
65  typedef struct files_struct *fl_owner_t;
66  
67  struct file_lock_operations {
68 -       void (* const fl_copy_lock)(struct file_lock *, struct file_lock *);
69 -       void (* const fl_release_private)(struct file_lock *);
70 +       void (* fl_copy_lock)(struct file_lock *, struct file_lock *);
71 +       void (* fl_release_private)(struct file_lock *);
72  };
73  
74  struct lock_manager_operations {
75 -       int (* const fl_compare_owner)(struct file_lock *, struct file_lock *);
76 -       void (* const fl_notify)(struct file_lock *);   /* unblock callback */
77 -       int (* const fl_grant)(struct file_lock *, struct file_lock *, int);
78 -       void (* const fl_release_private)(struct file_lock *);
79 -       void (* const fl_break)(struct file_lock *);
80 -       int (* const fl_mylease)(struct file_lock *, struct file_lock *);
81 -       int (* const fl_change)(struct file_lock **, int);
82 +       int (* fl_compare_owner)(struct file_lock *, struct file_lock *);
83 +       void (* fl_notify)(struct file_lock *); /* unblock callback */
84 +       int (* fl_grant)(struct file_lock *, struct file_lock *, int);
85 +       void (* fl_release_private)(struct file_lock *);
86 +       void (* fl_break)(struct file_lock *);
87 +       int (* fl_mylease)(struct file_lock *, struct file_lock *);
88 +       int (* fl_change)(struct file_lock **, int);
89  };
90  
91  struct lock_manager {
This page took 0.049197 seconds and 3 git commands to generate.