[RHEL7,COMMIT] fuse: Add more debug info into fuse_direct_IO_bvec()

Submitted by Konstantin Khorenko on Feb. 11, 2020, 12:57 p.m.

Details

Message ID 202002111257.01BCvonI009453@finist-ce7.sw.ru
State New
Series "Series without cover letter"
Headers show

Commit Message

Konstantin Khorenko Feb. 11, 2020, 12:57 p.m.
The commit is pushed to "branch-rh7-3.10.0-1062.12.1.vz7.131.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.12.1.vz7.131.1
------>
commit 0a14621aa2390c00093b39eb8feda4a75e0488c8
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Fri Feb 7 13:23:04 2020 +0300

    fuse: Add more debug info into fuse_direct_IO_bvec()
    
    https://jira.sw.ru/browse/PSBM-101418
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 fs/fuse/file.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index e2e54d5ad5719..2ecccf337b45b 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -3513,7 +3513,9 @@  static ssize_t fuse_direct_IO_bvec(int rw, struct kiocb *iocb,
 
 	/* TODO: File extension is not yet implemented */
 	if (offset + bvec_length(bvec, bvec_len) > i_size) {
-		WARN_ONCE(1, "fuse: file extension is not implemented yet\n");
+		WARN_ONCE(1, "fuse: file extension is not implemented yet: "
+			     "%lld %ld %lld\n",
+			     offset, bvec_length(bvec, bvec_len), i_size);
 		return -EINVAL;
 	}