Re: [PATCH 09/12] iomap: lift the xfs writeback code to iomap

Christoph Hellwig
2019-10-16T07:43:40Z

On Tue, Oct 15, 2019 at 11:40:40AM -0700, Darrick J. Wong wrote:
> > + if (unlikely(error && !quiet)) {
> > + printk_ratelimited(KERN_ERR
> > + "%s: writeback error on sector %llu",
> > + inode->i_sb->s_id, start);
>
> Ugh, /this/ message. It's pretty annoying how it doesn't tell you which
> file or where in that file the write was lost.

Sure, feel free to improve it in a follow on patch.

>
> I want to send in a patch atop your series to fix this, though I'm a
> also little inclined to want to keep the message inside XFS.
>
> Thoughts?

I don't see a sensible way to keep it in the file system, and I also
don't really see what that would buy us. I'd rather use the same
message for all iomap using file systems rather than having slightly
different error reporting for each of them.
inside the iomap callstack.