2010-07-07 11:12:45 +00:00
|
|
|
From: Jeff Mahoney <jeffm@suse.com>
|
|
|
|
Subject: Export release_open_intent for NFS branches with aufs
|
|
|
|
Patch-mainline: never
|
|
|
|
|
|
|
|
aufs requires a way to release an open intent when handling an error
|
|
|
|
condition after using NFSv4's atomic open. It was using put_filp,
|
|
|
|
but release_open_intent is more appropriate.
|
|
|
|
|
|
|
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
|
|
|
---
|
|
|
|
fs/namei.c | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
--- a/fs/namei.c
|
|
|
|
+++ b/fs/namei.c
|
2011-04-19 20:09:59 +00:00
|
|
|
@@ -562,6 +562,7 @@ void release_open_intent(struct nameidat
|
|
|
|
fput(file);
|
|
|
|
}
|
2010-07-07 11:12:45 +00:00
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL_GPL(release_open_intent);
|
|
|
|
|
2011-04-19 20:09:59 +00:00
|
|
|
static inline int d_revalidate(struct dentry *dentry, struct nameidata *nd)
|
|
|
|
{
|