Re: [Xen-devel] [PATCH RESEND] compat-ioctl/Xen: support at least some IOCTLs of evtchn and privcmd

2018-08-15 Thread Al Viro
ain > with a 64-bit kernel underneath a 32-bit distro. > > Signed-off-by: Jan Beulich > Acked-by: Juergen Gross Nacked-by: Al Viro This belongs in drivers/xen/privcmd.c, not in fs/compat_ioctl.c *ANY* single-driver ioctl definitely should be handled by ->compat_ioctl() m

Re: [Xen-devel] [PATCH RESEND] compat-ioctl/Xen: support at least some IOCTLs of evtchn and privcmd

2018-08-15 Thread Al Viro
ork), it at least allows some simple operations (like > >> "xl dmesg") which have always been available on XenoLinux to work again > >> with a 64-bit kernel underneath a 32-bit distro. > >> > >> Signed-off-by: Jan Beulich > >> Acked-by: Juergen

Re: [PATCH RFC PKS/PMEM 33/58] fs/cramfs: Utilize new kmap_thread()

2020-10-13 Thread Al Viro
On Tue, Oct 13, 2020 at 08:36:43PM +0100, Matthew Wilcox wrote: > static inline void copy_to_highpage(struct page *to, void *vfrom, unsigned > int size) > { > char *vto = kmap_atomic(to); > > memcpy(vto, vfrom, size); > kunmap_atomic(vto); > } > > in linux/highmem.h ? You mea

Re: [PATCH block/for-next v2 00/16] block: remove field 'bd_inode' from block_device

2023-11-26 Thread Al Viro
On Mon, Nov 27, 2023 at 02:21:00PM +0800, Yu Kuai wrote: > From: Yu Kuai > > Changes in v2: > - split different portions into different patches, as greg k-h > suggested. > - use container_of() instead of "bdev + 1" to get the address of > bd_inode in the new helper, as grep k-h suggested. Yo

Re: [PATCH v2 0/29] block: Make blkdev_get_by_*() return handle

2023-08-24 Thread Al Viro
On Fri, Aug 11, 2023 at 01:04:31PM +0200, Jan Kara wrote: > Hello, > > this is a v2 of the patch series which implements the idea of > blkdev_get_by_*() > calls returning bdev_handle which is then passed to blkdev_put() [1]. This > makes the get and put calls for bdevs more obviously matching and

Re: [PATCH v2 0/29] block: Make blkdev_get_by_*() return handle

2023-08-25 Thread Al Viro
On Fri, Aug 25, 2023 at 03:47:56PM +0200, Jan Kara wrote: > I can see the appeal of not having to introduce the new bdev_handle type > and just using struct file which unifies in-kernel and userspace block > device opens. But I can see downsides too - the last fput() happening from > task work mak