[PATCH] fscache, cachefiles: fix some tracing output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These are cut and paste bugs.  It is using the wrong error codes.

Fixes: 5cc1b2a78318 ("cachefiles: Implement backing file wrangling")
Fixes: e19b617e438a ("cachefiles: Implement culling daemon commands")
Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
---
 fs/cachefiles/namei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
index a651da35dcd0..a2f895f45c25 100644
--- a/fs/cachefiles/namei.c
+++ b/fs/cachefiles/namei.c
@@ -390,7 +390,7 @@ int cachefiles_bury_object(struct cachefiles_cache *cache,
 			ret = vfs_rename(&rd);
 		if (ret != 0)
 			trace_cachefiles_vfs_error(object, d_inode(dir),
-						   PTR_ERR(grave),
+						   ret,
 						   cachefiles_trace_rename_error);
 		if (ret != 0 && ret != -ENOMEM)
 			cachefiles_io_error(cache,
@@ -702,7 +702,7 @@ bool cachefiles_commit_tmpfile(struct cachefiles_cache *cache,
 		ret = vfs_link(object->file->f_path.dentry, &init_user_ns,
 			       d_inode(fan), dentry, NULL);
 	if (ret < 0) {
-		trace_cachefiles_vfs_error(object, d_inode(fan), PTR_ERR(dentry),
+		trace_cachefiles_vfs_error(object, d_inode(fan), ret,
 					   cachefiles_trace_link_error);
 		_debug("link fail %d", ret);
 	} else {
-- 
2.20.1




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux