File aufs-use-release_open_intent of Package aufs
From: Jeff Mahoney <jeffm@suse.com>
Subject: aufs: Use release_open_intent instead of put_filp
release_open_intent is specifically for releasing open intents. Use
that instead of the internal put_filp. release_open_intent is internal, but
the case for it to be exported is much more easily made.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
fs/aufs25/br_nfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/fs/aufs25/br_nfs.c
+++ b/fs/aufs25/br_nfs.c
@@ -225,7 +225,7 @@ int au_hin_after_reval(struct nameidata
nd->intent.open.file = NULL;
}
if (unlikely(nd->intent.open.file))
- put_filp(nd->intent.open.file);
+ release_open_intent(nd);
}
return err;
@@ -349,7 +349,7 @@ struct dentry *au_lkup_hash(const char *
out_intent:
if (tmp_nd.intent.open.file)
- put_filp(tmp_nd.intent.open.file);
+ release_open_intent(&tmp_nd);
AuTraceErrPtr(dentry);
return dentry;