https://github.com/torvalds/linux
Revision 72d282dc5109e5dc0d963be020604e0cc82f7ed7 authored by Sachin Prabhu on 05 March 2013, 19:25:55 UTC, committed by Steve French on 07 March 2013, 00:28:35 UTC
Fix check for error condition after setting attributes with
CIFSSMBSetFileInfo().

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
1 parent 9f22578
Raw File
Tip revision: 72d282dc5109e5dc0d963be020604e0cc82f7ed7 authored by Sachin Prabhu on 05 March 2013, 19:25:55 UTC
cifs: Fix bug when checking error condition in cifs_rename_pending_delete()
Tip revision: 72d282d
notifier-error-inject.h
#include <linux/atomic.h>
#include <linux/debugfs.h>
#include <linux/notifier.h>

struct notifier_err_inject_action {
	unsigned long val;
	int error;
	const char *name;
};

#define NOTIFIER_ERR_INJECT_ACTION(action)	\
	.name = #action, .val = (action),

struct notifier_err_inject {
	struct notifier_block nb;
	struct notifier_err_inject_action actions[];
	/* The last slot must be terminated with zero sentinel */
};

extern struct dentry *notifier_err_inject_dir;

extern struct dentry *notifier_err_inject_init(const char *name,
		struct dentry *parent, struct notifier_err_inject *err_inject,
		int priority);
back to top