Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5999
b: refs/heads/master
c: 7c657f2
h: refs/heads/master
i:
  5997: d3da341
  5995: 0e28dfa
  5991: 4257b9c
  5983: 19b9f43
v: v3
  • Loading branch information
John McCutchan authored and Linus Torvalds committed Aug 26, 2005
1 parent 87b05c4 commit 05bdf71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 755528c860b05fcecda1c88a2bdaffcb50760a7f
refs/heads/master: 7c657f2f25d50c602df9291bc6242b98fc090759
2 changes: 1 addition & 1 deletion trunk/fs/inotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static int inotify_dev_get_wd(struct inotify_device *dev,
do {
if (unlikely(!idr_pre_get(&dev->idr, GFP_KERNEL)))
return -ENOSPC;
ret = idr_get_new_above(&dev->idr, watch, dev->last_wd, &watch->wd);
ret = idr_get_new_above(&dev->idr, watch, dev->last_wd+1, &watch->wd);
} while (ret == -EAGAIN);

return ret;
Expand Down
2 changes: 1 addition & 1 deletion trunk/lib/idr.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id)
}

/**
* idr_get_new_above - allocate new idr entry above a start id
* idr_get_new_above - allocate new idr entry above or equal to a start id
* @idp: idr handle
* @ptr: pointer you want associated with the ide
* @start_id: id to start search at
Expand Down

0 comments on commit 05bdf71

Please sign in to comment.