Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40095
b: refs/heads/master
c: e2057c5
h: refs/heads/master
i:
  40093: d2c5e35
  40091: 4ec1360
  40087: 7e3ced3
  40079: ac2c1e5
  40063: 4997629
v: v3
  • Loading branch information
Mark Fasheh committed Oct 20, 2006
1 parent 8326cb9 commit bf042a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0effef776ff95b7a6d6e48a2ef407ecaa8c21f96
refs/heads/master: e2057c5a63821e17c8a54dab6db680c77ce7ee6c
7 changes: 7 additions & 0 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <linux/highmem.h>
#include <linux/pagemap.h>
#include <linux/uio.h>
#include <linux/sched.h>

#define MLOG_MASK_PREFIX ML_INODE
#include <cluster/masklog.h>
Expand Down Expand Up @@ -691,6 +692,12 @@ static int ocfs2_zero_extend(struct inode *inode,
}

start_off += sb->s_blocksize;

/*
* Very large extends have the potential to lock up
* the cpu for extended periods of time.
*/
cond_resched();
}

out:
Expand Down

0 comments on commit bf042a5

Please sign in to comment.