Re: [PATCH 14/14] bcache: move struct cache_sb out of uapi bcache.h

From
Coly Li <hidden>
Date
2020-08-17 11:49:08
Also in
linux-block
Reply to
Christoph Hellwig, 2020-08-17
On 2020/8/17 18:28, Christoph Hellwig wrote:
On Sat, Aug 15, 2020 at 12:10:43PM +0800, Coly Li wrote:
quoted
struct cache_sb does not exactly map to cache_sb_disk, it is only for
in-memory super block and dosn't belong to uapi bcache.h.

This patch moves the struct cache_sb definition and other depending
macros and inline routines from include/uapi/linux/bcache.h to
drivers/md/bcache/bcache.h, this is the proper location to have them.
Honestly, nothing in include/uapi/linux/bcache.h is a UAPI.  It seems
to be a random mix of the on-disk format and internals, but certainly
noting that declares a UAPI at all.

Which might not invalidate this patch, but while you touch it you
should probably add a patch that once only the on-disk format is
left the file gets renamed to say drivers/md/bcache/disk_format.h.
OK then I keep include/uapi/linux/bcache as it is for this moment.

Thanks for the comments.

Coly Li
Thread (34 messages) 34 messages, 3 authors, last reply 2020-08-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help