Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173166
b: refs/heads/master
c: e43d3f2
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed Sep 14, 2009
1 parent 59aaa0b commit b6c47d6
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 6e3647acb4f200add1d8e0203514f7ac925ae463
refs/heads/master: e43d3f21c502dec786f2885a75e25859f18d6ffa
13 changes: 13 additions & 0 deletions trunk/include/linux/reiserfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ void reiserfs_write_unlock(struct super_block *s);
int reiserfs_write_lock_once(struct super_block *s);
void reiserfs_write_unlock_once(struct super_block *s, int lock_depth);

/*
* When we schedule, we usually want to also release the write lock,
* according to the previous bkl based locking scheme of reiserfs.
*/
static inline void reiserfs_cond_resched(struct super_block *s)
{
if (need_resched()) {
reiserfs_write_unlock(s);
schedule();
reiserfs_write_lock(s);
}
}

struct fid;

/* in reading the #defines, it may help to understand that they employ
Expand Down

0 comments on commit b6c47d6

Please sign in to comment.