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(-) Index: aufs/fs/aufs25/br_nfs.c =================================================================== --- aufs.orig/fs/aufs25/br_nfs.c +++ aufs/fs/aufs25/br_nfs.c @@ -235,7 +235,7 @@ int au_hin_after_reval(struct nameidata if (!err) nd->intent.open.file = NULL; } - au_put_filp(nd->intent.open.file); + release_open_intent(nd); } return err; @@ -358,7 +358,7 @@ struct dentry *au_lkup_hash(const char * path_put(&tmp_nd.path); out_intent: - au_put_filp(tmp_nd.intent.open.file); + release_open_intent(&tmp_nd); out: AuTraceErrPtr(dentry); return dentry;