[rh7,1/2] fuse: Add more debug info into fuse_direct_IO_bvec()

Submitted by Kirill Tkhai on Feb. 7, 2020, 10:23 a.m.

Details

Message ID 158107098411.193023.1292354719369061118.stgit@localhost.localdomain
State New
Series "Series without cover letter"
Headers show

Commit Message

Kirill Tkhai Feb. 7, 2020, 10:23 a.m.
https://jira.sw.ru/browse/PSBM-101418

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 fs/fuse/file.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index 79e64069e06a..a1b12e2ea59c 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -3494,7 +3494,8 @@  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;
 	}