Skip to contentSkip to conversation

ovl: fix overlay: warning prefix

PATCH Applied Amir Goldstein 3 participants 6 messages Nov 22, 2017 – Dec 18, 2017

Subsystems (2)
lore
Share & tools
lore

Amir Goldstein

author maintainer
#0 lore raw

PATCH 1/1 ovl: fix overlay: warning prefix

Conform two stray warning messages to the standard overlayfs: prefix.

---
 fs/overlayfs/dir.c     | 3 ++-
 fs/overlayfs/readdir.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
fs/overlayfs/dir.c +2 -1
index 5ec5ee8e0589..0ce535e7519e 100644
@@ -887,7 +887,8 @@ static int ovl_set_redirect(struct dentry *dentry, bool samedir)
 		spin_unlock(&dentry->d_lock);
 	} else {
 		kfree(redirect);
-		pr_warn_ratelimited("overlay: failed to set redirect (%i)\n", err);
+		pr_warn_ratelimited("overlayfs: failed to set redirect (%i)\n",
+				    err);
 		/* Fall back to userspace copy-up */
 		err = -EXDEV;
 	}
fs/overlayfs/readdir.c +1 -1
index 362561457cdb..7fc142d183e8 100644
@@ -499,7 +499,7 @@ static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p)
 	return err;
 
 fail:
-	pr_warn_ratelimited("overlay: failed to look up (%s) for ino (%i)\n",
+	pr_warn_ratelimited("overlayfs: failed to look up (%s) for ino (%i)\n",
 			    p->name, err);
 	goto out;
 }
Signature · 1 line
2.7.4
author maintainer
#1 lore raw
Quoted 27 lines · Amir Goldstein

Conform two stray warning messages to the standard overlayfs: prefix.

---
 fs/overlayfs/dir.c     | 3 ++-
 fs/overlayfs/readdir.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
fs/overlayfs/dir.c +2 -1
index 5ec5ee8e0589..0ce535e7519e 100644
@@ -887,7 +887,8 @@ static int ovl_set_redirect(struct dentry *dentry, bool samedir)
                spin_unlock(&dentry->d_lock);
        } else {
                kfree(redirect);
-               pr_warn_ratelimited("overlay: failed to set redirect (%i)\n", err);
+               pr_warn_ratelimited("overlayfs: failed to set redirect (%i)\n",
+                                   err);
                /* Fall back to userspace copy-up */
                err = -EXDEV;
        }
fs/overlayfs/readdir.c +0 -0
index 362561457cdb..7fc142d183e8 100644

fs/overlayfs/readdir.c static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p)

Quoted 9 lines
fs/overlayfs/readdir.c +1 -2
@@ -499,7 +499,7 @@ static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p)
        return err;
 
 fail:
-       pr_warn_ratelimited("overlay: failed to look up (%s) for ino (%i)\n",
+       pr_warn_ratelimited("overlayfs: failed to look up (%s) for ino (%i)\n",
                            p->name, err);
        goto out;
 }
--

Ping

maintainer Applied
#2 lore raw
Quoted 30 lines · Amir Goldstein
Quoted 29 lines · Amir Goldstein

Conform two stray warning messages to the standard overlayfs: prefix.

---
 fs/overlayfs/dir.c     | 3 ++-
 fs/overlayfs/readdir.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
fs/overlayfs/dir.c +2 -1
index 5ec5ee8e0589..0ce535e7519e 100644
@@ -887,7 +887,8 @@ static int ovl_set_redirect(struct dentry *dentry, bool samedir)
                spin_unlock(&dentry->d_lock);
        } else {
                kfree(redirect);
-               pr_warn_ratelimited("overlay: failed to set redirect (%i)\n", err);
+               pr_warn_ratelimited("overlayfs: failed to set redirect (%i)\n",
+                                   err);
                /* Fall back to userspace copy-up */
                err = -EXDEV;
        }
fs/overlayfs/readdir.c +0 -0
index 362561457cdb..7fc142d183e8 100644
@@ -499,7 +499,7 @@ static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p)
        return err;
 
Quoted 9 lines

fs/overlayfs/readdir.c static int ovl_cache_update_ino(struct path *path, struct ovl_cache_entry *p)

Quoted 7 lines
fs/overlayfs/readdir.c +1 -2
 fail:
-       pr_warn_ratelimited("overlay: failed to look up (%s) for ino (%i)\n",
+       pr_warn_ratelimited("overlayfs: failed to look up (%s) for ino (%i)\n",
                            p->name, err);
        goto out;
 }
--

Ping

Applied, thanks.

Anything else I missed that need to be sent to 4.15-rc?

Thanks,
Miklos

author maintainer
#3 lore raw
In reply to Amir Goldstein
Quoted 4 lines · Amir Goldstein

Conform two stray warning messages to the standard overlayfs: prefix.

---

Greg,

Upstream commit ("da2e6b7eeda8 ovl: fix overlay: warning prefix") was not marked for stable, because it is not a bug fix per-se. Nevertheless, it may be useful to apply it to stable kernels to keep overlayfs bug reports/analysis consistent.

The first hunk fixes (#v4.10):
a6c606551141 ovl: redirect on rename-dir

The second hunk fixes (#v4.14):
b5efccbe0a12 ovl: constant d_ino across copy up

For your consideration.
If you wish, I can send a patch for v4.10 with just the first hunk.

Thanks,
Amir.

maintainer
#4 lore raw
Quoted 13 lines · Amir Goldstein
Quoted 4 lines · Amir Goldstein

Conform two stray warning messages to the standard overlayfs: prefix.

---

Greg,

Upstream commit ("da2e6b7eeda8 ovl: fix overlay: warning prefix") was not marked for stable, because it is not a bug fix per-se. Nevertheless, it may be useful to apply it to stable kernels to keep overlayfs bug reports/analysis consistent.

Quoted 8 lines

The first hunk fixes (#v4.10):
a6c606551141 ovl: redirect on rename-dir

The second hunk fixes (#v4.14):
b5efccbe0a12 ovl: constant d_ino across copy up

For your consideration.
If you wish, I can send a patch for v4.10 with just the first hunk.

4.10 is long end-of-life, so I don't think that matters :)

As for 4.14, this is just an error message, I don't think it's that serious of a fix for a stable kernel, do you? It's _this_ close to just being a spelling fix.

thanks,

greg k-h

author maintainer
#5 lore raw
Quoted 17 lines · Greg KH
Quoted 16 lines · Amir Goldstein
Quoted 4 lines · Amir Goldstein

Conform two stray warning messages to the standard overlayfs: prefix.

---

Greg,

Upstream commit ("da2e6b7eeda8 ovl: fix overlay: warning prefix") was not marked for stable, because it is not a bug fix per-se. Nevertheless, it may be useful to apply it to stable kernels to keep overlayfs bug reports/analysis consistent.

The first hunk fixes (#v4.10):
a6c606551141 ovl: redirect on rename-dir

Quoted 8 lines
Quoted 5 lines

The second hunk fixes (#v4.14):
b5efccbe0a12 ovl: constant d_ino across copy up

For your consideration.
If you wish, I can send a patch for v4.10 with just the first hunk.

4.10 is long end-of-life, so I don't think that matters :)

Yeh, I thought 4.13 was still around, but it's not...

Quoted 5 lines

As for 4.14, this is just an error message, I don't think it's that serious of a fix for a stable kernel, do you? It's _this_ close to just being a spelling fix.

Not serious at all.
It's just that collecting overlayfs output from kmsg on bug reports is one notch easier to request.

I can certainly live without it being in a stable.

Thanks,
Amir.