Commit 37491a13 authored by David Howells's avatar David Howells

CacheFiles: Make some debugging statements conditional

Downgrade some debugging statements to not unconditionally print stuff, but
rather be conditional on the appropriate module parameter setting.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 0f972b56
...@@ -77,25 +77,25 @@ static int cachefiles_read_reissue(struct cachefiles_object *object, ...@@ -77,25 +77,25 @@ static int cachefiles_read_reissue(struct cachefiles_object *object,
struct page *backpage = monitor->back_page, *backpage2; struct page *backpage = monitor->back_page, *backpage2;
int ret; int ret;
kenter("{ino=%lx},{%lx,%lx}", _enter("{ino=%lx},{%lx,%lx}",
object->backer->d_inode->i_ino, object->backer->d_inode->i_ino,
backpage->index, backpage->flags); backpage->index, backpage->flags);
/* skip if the page was truncated away completely */ /* skip if the page was truncated away completely */
if (backpage->mapping != bmapping) { if (backpage->mapping != bmapping) {
kleave(" = -ENODATA [mapping]"); _leave(" = -ENODATA [mapping]");
return -ENODATA; return -ENODATA;
} }
backpage2 = find_get_page(bmapping, backpage->index); backpage2 = find_get_page(bmapping, backpage->index);
if (!backpage2) { if (!backpage2) {
kleave(" = -ENODATA [gone]"); _leave(" = -ENODATA [gone]");
return -ENODATA; return -ENODATA;
} }
if (backpage != backpage2) { if (backpage != backpage2) {
put_page(backpage2); put_page(backpage2);
kleave(" = -ENODATA [different]"); _leave(" = -ENODATA [different]");
return -ENODATA; return -ENODATA;
} }
...@@ -114,7 +114,7 @@ static int cachefiles_read_reissue(struct cachefiles_object *object, ...@@ -114,7 +114,7 @@ static int cachefiles_read_reissue(struct cachefiles_object *object,
if (PageUptodate(backpage)) if (PageUptodate(backpage))
goto unlock_discard; goto unlock_discard;
kdebug("reissue read"); _debug("reissue read");
ret = bmapping->a_ops->readpage(NULL, backpage); ret = bmapping->a_ops->readpage(NULL, backpage);
if (ret < 0) if (ret < 0)
goto unlock_discard; goto unlock_discard;
...@@ -129,7 +129,7 @@ static int cachefiles_read_reissue(struct cachefiles_object *object, ...@@ -129,7 +129,7 @@ static int cachefiles_read_reissue(struct cachefiles_object *object,
} }
/* it'll reappear on the todo list */ /* it'll reappear on the todo list */
kleave(" = -EINPROGRESS"); _leave(" = -EINPROGRESS");
return -EINPROGRESS; return -EINPROGRESS;
unlock_discard: unlock_discard:
...@@ -137,7 +137,7 @@ static int cachefiles_read_reissue(struct cachefiles_object *object, ...@@ -137,7 +137,7 @@ static int cachefiles_read_reissue(struct cachefiles_object *object,
spin_lock_irq(&object->work_lock); spin_lock_irq(&object->work_lock);
list_del(&monitor->op_link); list_del(&monitor->op_link);
spin_unlock_irq(&object->work_lock); spin_unlock_irq(&object->work_lock);
kleave(" = %d", ret); _leave(" = %d", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment