fold put_filp() into fput()
[linux-block.git] / fs / namei.c
index 3cf02804d5ffd61220b9b2004b32384d881e7eba..503c4b968415047636a2bfe718b351235eee8760 100644 (file)
@@ -3531,7 +3531,7 @@ static struct file *path_openat(struct nameidata *nd,
 
        s = path_init(nd, flags);
        if (IS_ERR(s)) {
-               put_filp(file);
+               fput(file);
                return ERR_CAST(s);
        }
        while (!(error = link_path_walk(s, nd)) &&
@@ -3547,7 +3547,7 @@ static struct file *path_openat(struct nameidata *nd,
 out2:
        if (!(opened & FILE_OPENED)) {
                BUG_ON(!error);
-               put_filp(file);
+               fput(file);
        }
        if (unlikely(error)) {
                if (error == -EOPENSTALE) {