Skip to content

Commit 74782eb

Browse files
committed
Merge: block: update with v6.14
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6580 JIRA: https://issues.redhat.com/browse/RHEL-79409 we don't backport "block: Fix potential deadlock while freezing queue and acquiring sysfs_lock Omitted-Fix: 224749b ("block: Revert "block: Fix potential deadlock while freezing queue and acquiring sysfs_lock"") Omitted-Fix: 2fa07d7 ("btrfs: pass write-hint for buffered IO") Omitted-Fix: e559ee0 ("btrfs: validate queue limits") Omitted-Fix: 7467bc5 ("btrfs: zoned: calculate max_extent_size properly on non-zoned setup") Omitted-Fix: c7c97ce ("btrfs: handle bio_split() errors") Signed-off-by: Ming Lei <ming.lei@redhat.com> Approved-by: Ewan D. Milne <emilne@redhat.com> Approved-by: Maurizio Lombardi <mlombard@redhat.com> Approved-by: Rafael Aquini <raquini@redhat.com> Approved-by: Vitaly Kuznetsov <vkuznets@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents 81b77c4 + fd311be commit 74782eb

File tree

191 files changed

+2580
-1803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+2580
-1803
lines changed

Documentation/ABI/stable/sysfs-block

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,13 @@ Description:
420420
write_zeroes_max_bytes is 0, write zeroes is not supported
421421
by the device.
422422

423+
What: /sys/block/<disk>/queue/iostats_passthrough
424+
Date: October 2024
425+
Contact: linux-block@vger.kernel.org
426+
Description:
427+
[RW] This file is used to control (on/off) the iostats
428+
accounting of the disk for passthrough commands.
429+
423430

424431
What: /sys/block/<disk>/queue/zoned
425432
Date: September 2016

Documentation/block/cmdline-partition.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,16 @@ blkdevparts=<blkdev-def>[;<blkdev-def>]
3939
create a link to block device partition with the name "PARTNAME".
4040
User space application can access partition by partition name.
4141

42+
ro
43+
read-only. Flag the partition as read-only.
44+
4245
Example:
4346

4447
eMMC disk names are "mmcblk0" and "mmcblk0boot0".
4548

4649
bootargs::
4750

48-
'blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot),-(kernel)'
51+
'blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot)ro,-(kernel)'
4952

5053
dmesg::
5154

arch/arc/include/asm/io.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ extern void iounmap(const void __iomem *addr);
4343
#define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force u16)cpu_to_be16(v), p); })
4444
#define iowrite32be(v,p) ({ __iowmb(); __raw_writel((__force u32)cpu_to_be32(v), p); })
4545

46-
/* Change struct page to physical address */
47-
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
48-
4946
#define __raw_readb __raw_readb
5047
static inline u8 __raw_readb(const volatile void __iomem *addr)
5148
{

arch/arm/include/asm/memory.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ extern unsigned long vectors_base;
142142
#define DTCM_OFFSET UL(0xfffe8000)
143143
#endif
144144

145-
/*
146-
* Convert a page to/from a physical address
147-
*/
148-
#define page_to_phys(page) (__pfn_to_phys(page_to_pfn(page)))
149-
#define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
150-
151145
/*
152146
* PLAT_PHYS_OFFSET is the offset (from zero) of the start of physical
153147
* memory. This is used for XIP and NoMMU kernels, and on platforms that don't

arch/arm64/include/asm/memory.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,6 @@ extern phys_addr_t __phys_addr_symbol(unsigned long x);
351351
#define __phys_to_virt(x) ((unsigned long)((x) - PHYS_OFFSET) | PAGE_OFFSET)
352352
#define __phys_to_kimg(x) ((unsigned long)((x) + kimage_voffset))
353353

354-
/*
355-
* Convert a page to/from a physical address
356-
*/
357-
#define page_to_phys(page) (__pfn_to_phys(page_to_pfn(page)))
358-
#define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
359-
360354
/*
361355
* Note: Drivers should NOT use these. They are the wrong
362356
* translation for translating DMA addresses. Use the driver

arch/arm64/kernel/patching.c

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,17 @@ static bool is_image_text(unsigned long addr)
3030

3131
static void __kprobes *patch_map(void *addr, int fixmap)
3232
{
33-
unsigned long uintaddr = (uintptr_t) addr;
34-
bool image = is_image_text(uintaddr);
35-
struct page *page;
36-
37-
if (image)
38-
page = phys_to_page(__pa_symbol(addr));
39-
else if (IS_ENABLED(CONFIG_STRICT_MODULE_RWX))
40-
page = vmalloc_to_page(addr);
41-
else
42-
return addr;
43-
44-
BUG_ON(!page);
45-
return (void *)set_fixmap_offset(fixmap, page_to_phys(page) +
46-
(uintaddr & ~PAGE_MASK));
33+
phys_addr_t phys;
34+
35+
if (is_image_text((unsigned long)addr)) {
36+
phys = __pa_symbol(addr);
37+
} else {
38+
struct page *page = vmalloc_to_page(addr);
39+
BUG_ON(!page);
40+
phys = page_to_phys(page) + offset_in_page(addr);
41+
}
42+
43+
return (void *)set_fixmap_offset(fixmap, phys);
4744
}
4845

4946
static void __kprobes patch_unmap(int fixmap)

arch/csky/include/asm/page.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ extern void *memcpy(void *to, const void *from, size_t l);
4747
#define clear_page(page) memset((page), 0, PAGE_SIZE)
4848
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
4949

50-
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
51-
#define phys_to_page(paddr) (pfn_to_page(PFN_DOWN(paddr)))
52-
5350
struct page;
5451

5552
#include <abi/page.h>

arch/m68k/include/asm/virtconvert.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ static inline void *phys_to_virt(unsigned long address)
2828
return __va(address);
2929
}
3030

31-
/* Permanent address of a page. */
32-
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
33-
3431
/*
3532
* IO bus memory addresses are 1:1 with the physical address,
3633
* deprecated globally but still used on two machines.

arch/microblaze/include/asm/page.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ extern int page_is_ram(unsigned long pfn);
109109

110110
# define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))
111111
# define page_to_virt(page) __va(page_to_pfn(page) << PAGE_SHIFT)
112-
# define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
113112

114113
# define ARCH_PFN_OFFSET (memory_start >> PAGE_SHIFT)
115114
# define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < (max_mapnr + ARCH_PFN_OFFSET))

arch/mips/include/asm/io.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ static inline void *isa_bus_to_virt(unsigned long address)
147147
return phys_to_virt(address);
148148
}
149149

150-
/*
151-
* Change "struct page" to physical address.
152-
*/
153-
#define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
154-
155150
void __iomem *ioremap_prot(phys_addr_t offset, unsigned long size,
156151
unsigned long prot_val);
157152
void iounmap(const volatile void __iomem *addr);

0 commit comments

Comments
 (0)