diff options
author | Len Brown <len.brown@intel.com> | 2005-08-26 22:11:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-08-26 22:11:28 -0400 |
commit | 60cfff3516580f5c782cef4dc28f2974c4df8ed1 (patch) | |
tree | 30053bcf09c1b77699281ba3a56d8ffb4144966c /fs/inotify.c | |
parent | 89ef1a21a174a4f581a4b6973f9a9f9ee28a9304 (diff) | |
parent | 212d6d2237f60bc28c1518f8abf9d3ed6c17574a (diff) | |
download | op-kernel-dev-60cfff3516580f5c782cef4dc28f2974c4df8ed1.zip op-kernel-dev-60cfff3516580f5c782cef4dc28f2974c4df8ed1.tar.gz |
Auto-update from upstream
Diffstat (limited to 'fs/inotify.c')
-rw-r--r-- | fs/inotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inotify.c b/fs/inotify.c index 868901b..2e4e2a5 100644 --- a/fs/inotify.c +++ b/fs/inotify.c @@ -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; |