summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-07-17 16:54:19 -0700
committerMark Fasheh <mfasheh@suse.com>2008-07-31 16:21:12 -0700
commitdacdd0e04768da1fd2b24a6ee274c582b40d0c5b (patch)
tree45b559bb14e9f968943bbc98b23b1489823898e0
parent94ad374a0751f40d25e22e036c37f7263569d24c (diff)
downloadop-kernel-dev-dacdd0e04768da1fd2b24a6ee274c582b40d0c5b.zip
op-kernel-dev-dacdd0e04768da1fd2b24a6ee274c582b40d0c5b.tar.gz
[PATCH] configfs: Include linux/err.h in linux/configfs.h
We now use PTR_ERR() in the ->make_item() and ->make_group() operations. Folks including configfs.h need err.h. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
-rw-r--r--fs/configfs/dir.c2
-rw-r--r--include/linux/configfs.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index 179589b..2495f23 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -1094,7 +1094,7 @@ static int configfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
kfree(name);
if (ret) {
/*
- * If item == NULL, then link_obj() was never called.
+ * If ret != 0, then link_obj() was never called.
* There are no extra references to clean up.
*/
goto out_put;
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index d62c19f..0a5491b 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -40,6 +40,7 @@
#include <linux/list.h>
#include <linux/kref.h>
#include <linux/mutex.h>
+#include <linux/err.h>
#include <asm/atomic.h>
OpenPOWER on IntegriCloud