Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[fs/lustre-release.git] / lustre / kernel_patches / patches / inode-protection-from-pdflush.patch
1
2 diff -puN fs/fs-writeback.c~inode-protection-from-pdflush fs/fs-writeback.c
3 --- linux-2.5.73/fs/fs-writeback.c~inode-protection-from-pdflush        Mon Jul  7 01:10:17 2003
4 +++ linux-2.5.73-alexey/fs/fs-writeback.c       Mon Jul  7 01:10:17 2003
5 @@ -198,6 +198,11 @@ static void
6  __writeback_single_inode(struct inode *inode,
7                         struct writeback_control *wbc)
8  {
9 +       if (inode->i_flags & I_SKIP_PDFLUSH) {
10 +               list_move(&inode->i_list, &inode->i_sb->s_dirty);
11 +               return;
12 +       }
13 +
14         if ((wbc->sync_mode != WB_SYNC_ALL) && (inode->i_state & I_LOCK)) {
15                 list_move(&inode->i_list, &inode->i_sb->s_dirty);
16                 return;
17 diff -puN include/linux/fs.h~inode-protection-from-pdflush include/linux/fs.h
18 --- linux-2.5.73/include/linux/fs.h~inode-protection-from-pdflush       Mon Jul  7 01:22:16 2003
19 +++ linux-2.5.73-alexey/include/linux/fs.h      Mon Jul  7 01:23:18 2003
20 @@ -816,6 +816,7 @@ struct super_operations {
21  #define I_FREEING              16
22  #define I_CLEAR                        32
23  #define I_NEW                  64
24 +#define I_SKIP_PDFLUSH         1024 /* inode will be out of pdflush's scope */
25  
26  #define I_DIRTY (I_DIRTY_SYNC | I_DIRTY_DATASYNC | I_DIRTY_PAGES)
27  
28
29 _