From 129d754b0be9b661ce0b9b4a8996ee14405d5e94 Mon Sep 17 00:00:00 2001 From: Li Nan Date: Wed, 28 May 2025 20:13:23 +0800 Subject: [PATCH] print file type --- fs/read_write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/read_write.c b/fs/read_write.c index 4771701c896b..7aa16f7dacfe 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1251,6 +1251,7 @@ static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, if (retval < 0) goto fput_out; file_start_write(out.file); + printk("i_op %px, a_ops %px\n", in.file->f_inode->i_op, in.file->f_mapping->a_ops); retval = do_splice_direct(in.file, &pos, out.file, &out_pos, count, fl); file_end_write(out.file); -- Gitee