atomic_inc(&inotify_watches); 
static struct inotify_watch *create_watch(struct inotify_device *dev,					  u32 mask, struct inode *inode){	struct inotify_watch *watch;	int ret;	if (atomic_read(&dev->user->inotify_watches) >=			inotify_max_user_watches)		return ERR_PTR(-ENOSPC);	watch = kmem_cache_alloc(watch_cachep, GFP_KERNEL);	if (unlikely(!watch))		return ERR_PTR(-ENOMEM);	ret = inotify_dev_get_wd(dev, watch);	if (unlikely(ret)) {		kmem_cache_free(watch_cachep, watch);		return ERR_PTR(ret);	}	dev->last_wd = watch->wd;	watch->mask = mask;	atomic_set(&watch->count, 0);	INIT_LIST_HEAD(&watch->d_list);	INIT_LIST_HEAD(&watch->i_list);	/* save a reference to device and bump the count to make it official */	get_inotify_dev(dev);	watch->dev = dev;	/*	 * Save a reference to the inode and bump the ref count to make it	 * official.  We hold a reference to nameidata, which makes this safe.	 */	watch->inode = igrab(inode);	/* bump our own count, corresponding to our entry in dev->watches */	get_inotify_watch(watch);	atomic_inc(&dev->user->inotify_watches);	return watch;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/820249bafe441dce5336ad544a5e709df42fceb5/inotify.c/buggy/fs/inotify.c