Matthew Wilcox (Oracle)
2a7aea59cf
squashfs: convert squashfs_readpage_block() to take a folio
...
Remove a few accesses to page->mapping.
Link: https://lkml.kernel.org/r/20241220224634.723899-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Cc: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:47:22 -08:00
Matthew Wilcox (Oracle)
8c1565fcf6
squashfs: pass a folio to squashfs_readpage_fragment()
...
Remove an access to page->mapping.
Link: https://lkml.kernel.org/r/20241220224634.723899-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Cc: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:47:22 -08:00
Matthew Wilcox (Oracle)
608c250167
squashfs: use a folio throughout squashfs_read_folio()
...
Use modern folio APIs where they exist and convert back to struct
page for the internal functions.
Link: https://lkml.kernel.org/r/20241220224634.723899-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Cc: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:47:22 -08:00
Phillip Lougher
d7f4b23c67
squashfs: update Kconfig information
...
Update the compression algorithms supported, and the Squashfs website
location.
Link: https://lkml.kernel.org/r/20241229233752.54481-5-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:47:22 -08:00
Phillip Lougher
f2cad9850e
Documentation: update the Squashfs filesystem documentation
...
This patch updates the following which are out of date.
- Zstd has been added to the compression algorithms supported.
- The filesystem mailing list (for the kernel code) is changed to
linux-fsdevel rather than the now very little used Sourceforge
mailing list.
- The Squashfs website has been changed to the Squashfs-tools github
repository.
- The fact that Squashfs-tools is likely packaged by the linux
distribution is mentioned.
Link: https://lkml.kernel.org/r/20241229233752.54481-4-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:47:21 -08:00
Phillip Lougher
f5cc087375
squashfs: don't allocate read_page cache if SQUASHFS_FILE_DIRECT configured
...
If Squashfs has been configured to directly read datablocks into the page
cache (SQUASHFS_FILE_DIRECT), then the read_page cache is unnecessary.
This improvement is due to the following two commits, which added the
ability to read datablocks into the page cache when pages were missing,
enabling the fallback which used an intermediate buffer to be removed.
commit f268eedddf ("squashfs: extend "page actor" to handle missing pages")
commit 1bb1a07afa ("squashfs: don't use intermediate buffer if pages missing")
This reduces the amount of memory used when mounting a filesystem by
block_size * maximum number of threads.
Link: https://lkml.kernel.org/r/20241229233752.54481-3-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:47:21 -08:00
Phillip Lougher
49ff29240e
squashfs: make squashfs_cache_init() return ERR_PTR(-ENOMEM)
...
Patch series "squashfs: reduce memory usage and update docs".
This patchset reduces the amount of memory that Squashfs uses when
CONFIG_FILE_DIRECT is configured, and updates various out of date
information in the documentation and Kconfig.
This patch (of 4):
Make squashfs_cache_init() return an ERR_PTR(-ENOMEM) on failure rather
than NULL.
This tidies up some calling code, but, it also allows NULL to be returned
as a valid result when a cache hasn't be allocated.
Link: https://lkml.kernel.org/r/20241229233752.54481-1-phillip@squashfs.org.uk
Link: https://lkml.kernel.org/r/20241229233752.54481-2-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-24 22:45:34 -08:00
Wang Yaxin
f65c64f311
delayacct: add delay min to record delay peak
...
Delay accounting can now calculate the average delay of processes, detect
the overall system load, and also record the 'delay max' to identify
potential abnormal delays. However, 'delay min' can help us identify
another useful delay peak. By comparing the difference between 'delay
max' and 'delay min', we can understand the optimization space for
latency, providing a reference for the optimization of latency
performance.
Use case
=========
bash-4.4# ./getdelays -d -t 242
print delayacct stats ON
TGID 242
CPU count real total virtual total delay total delay average delay max delay min
39 156000000 156576579 2111069 0.054ms 0.212296ms 0.031307ms
IO count delay total delay average delay max delay min
0 0 0.000ms 0.000000ms 0.000000ms
SWAP count delay total delay average delay max delay min
0 0 0.000ms 0.000000ms 0.000000ms
RECLAIM count delay total delay average delay max delay min
0 0 0.000ms 0.000000ms 0.000000ms
THRASHING count delay total delay average delay max delay min
0 0 0.000ms 0.000000ms 0.000000ms
COMPACT count delay total delay average delay max delay min
0 0 0.000ms 0.000000ms 0.000000ms
WPCOPY count delay total delay average delay max delay min
156 11215873 0.072ms 0.207403ms 0.033913ms
IRQ count delay total delay average delay max delay min
0 0 0.000ms 0.000000ms 0.000000ms
Link: https://lkml.kernel.org/r/20241220173105906EOdsPhzjMLYNJJBqgz1ga@zte.com.cn
Co-developed-by: Wang Yong <wang.yong12@zte.com.cn >
Signed-off-by: Wang Yong <wang.yong12@zte.com.cn >
Co-developed-by: xu xin <xu.xin16@zte.com.cn >
Signed-off-by: xu xin <xu.xin16@zte.com.cn >
Signed-off-by: Wang Yaxin <wang.yaxin@zte.com.cn >
Co-developed-by: Kun Jiang <jiang.kun2@zte.com.cn >
Signed-off-by: Kun Jiang <jiang.kun2@zte.com.cn >
Cc: Balbir Singh <bsingharora@gmail.com >
Cc: David Hildenbrand <david@redhat.com >
Cc: Fan Yu <fan.yu9@zte.com.cn >
Cc: Peilin He <he.peilin@zte.com.cn >
Cc: tuqiang <tu.qiang35@zte.com.cn >
Cc: ye xingchen <ye.xingchen@zte.com.cn >
Cc: Yunkai Zhang <zhang.yunkai@zte.com.cn >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:16 -08:00
Yafang Shao
7e70433c2b
drivers: remove get_task_comm() and print task comm directly
...
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.
Link: https://lkml.kernel.org/r/20241219023452.69907-6-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com >
Reviewed-by: Jiri Slaby <jirislaby@kernel.org > (For tty)
Reviewed-by: Lyude Paul <lyude@redhat.com > (For nouveau)
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Jani Nikula <jani.nikula@linux.intel.com >
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com >
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com >
Cc: Tvrtko Ursulin <tursulin@ursulin.net >
Cc: David Airlie <airlied@gmail.com >
Cc: Simona Vetter <simona@ffwll.ch >
Cc: Karol Herbst <kherbst@redhat.com >
Cc: Lyude Paul <lyude@redhat.com >
Cc: Danilo Krummrich <dakr@redhat.com >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Jiri Slaby <jirislaby@kernel.org >
Cc: "André Almeida" <andrealmeid@igalia.com >
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Cc: Borislav Petkov (AMD) <bp@alien8.de >
Cc: Darren Hart <dvhart@infradead.org >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: Davidlohr Bueso <dave@stgolabs.net >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: James Morris <jmorris@namei.org >
Cc: Johannes Berg <johannes@sipsolutions.net >
Cc: Kalle Valo <kvalo@kernel.org >
Cc: Kees Cook <kees@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Paul Moore <paul@paul-moore.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Petr Mladek <pmladek@suse.com >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Vineet Gupta <vgupta@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:16 -08:00
Yafang Shao
7c58ed44bd
security: remove get_task_comm() and print task comm directly
...
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.
Link: https://lkml.kernel.org/r/20241219023452.69907-5-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com >
Reviewed-by: Paul Moore <paul@paul-moore.com >
Acked-by: Kees Cook <kees@kernel.org >
Cc: James Morris <jmorris@namei.org >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Cc: "André Almeida" <andrealmeid@igalia.com >
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Cc: Borislav Petkov (AMD) <bp@alien8.de >
Cc: Danilo Krummrich <dakr@redhat.com >
Cc: Darren Hart <dvhart@infradead.org >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: David Airlie <airlied@gmail.com >
Cc: Davidlohr Bueso <dave@stgolabs.net >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: Jani Nikula <jani.nikula@linux.intel.com >
Cc: Jiri Slaby <jirislaby@kernel.org >
Cc: Johannes Berg <johannes@sipsolutions.net >
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com >
Cc: Kalle Valo <kvalo@kernel.org >
Cc: Karol Herbst <kherbst@redhat.com >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Lyude Paul <lyude@redhat.com >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Petr Mladek <pmladek@suse.com >
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com >
Cc: Simona Vetter <simona@ffwll.ch >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Tvrtko Ursulin <tursulin@ursulin.net >
Cc: Vineet Gupta <vgupta@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:16 -08:00
Yafang Shao
b619c7ac21
net: remove get_task_comm() and print task comm directly
...
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.
Link: https://lkml.kernel.org/r/20241219023452.69907-4-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com >
Cc: Johannes Berg <johannes@sipsolutions.net >
Cc: "André Almeida" <andrealmeid@igalia.com >
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Cc: Borislav Petkov (AMD) <bp@alien8.de >
Cc: Danilo Krummrich <dakr@redhat.com >
Cc: Darren Hart <dvhart@infradead.org >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: David Airlie <airlied@gmail.com >
Cc: Davidlohr Bueso <dave@stgolabs.net >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: James Morris <jmorris@namei.org >
Cc: Jani Nikula <jani.nikula@linux.intel.com >
Cc: Jiri Slaby <jirislaby@kernel.org >
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com >
Cc: Kalle Valo <kvalo@kernel.org >
Cc: Karol Herbst <kherbst@redhat.com >
Cc: Kees Cook <kees@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Lyude Paul <lyude@redhat.com >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Paul Moore <paul@paul-moore.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Petr Mladek <pmladek@suse.com >
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Cc: Simona Vetter <simona@ffwll.ch >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Tvrtko Ursulin <tursulin@ursulin.net >
Cc: Vineet Gupta <vgupta@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:16 -08:00
Yafang Shao
52cd5c4b59
arch: remove get_task_comm() and print task comm directly
...
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.
Link: https://lkml.kernel.org/r/20241219023452.69907-3-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com >
Cc: Vineet Gupta <vgupta@kernel.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: "André Almeida" <andrealmeid@igalia.com >
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Cc: Danilo Krummrich <dakr@redhat.com >
Cc: Darren Hart <dvhart@infradead.org >
Cc: David Airlie <airlied@gmail.com >
Cc: Davidlohr Bueso <dave@stgolabs.net >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: James Morris <jmorris@namei.org >
Cc: Jani Nikula <jani.nikula@linux.intel.com >
Cc: Jiri Slaby <jirislaby@kernel.org >
Cc: Johannes Berg <johannes@sipsolutions.net >
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com >
Cc: Kalle Valo <kvalo@kernel.org >
Cc: Karol Herbst <kherbst@redhat.com >
Cc: Kees Cook <kees@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Lyude Paul <lyude@redhat.com >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Paul Moore <paul@paul-moore.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Petr Mladek <pmladek@suse.com >
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Cc: Simona Vetter <simona@ffwll.ch >
Cc: Tvrtko Ursulin <tursulin@ursulin.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:15 -08:00
Yafang Shao
b6dcdb06c0
kernel: remove get_task_comm() and print task comm directly
...
Patch series "Remove get_task_comm() and print task comm directly", v2.
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.
This patch (of 5):
Since task->comm is guaranteed to be NUL-terminated, we can print it
directly without the need to copy it into a separate buffer. This
simplifies the code and avoids unnecessary operations.
Link: https://lkml.kernel.org/r/20241219023452.69907-1-laoar.shao@gmail.com
Link: https://lkml.kernel.org/r/20241219023452.69907-2-laoar.shao@gmail.com
Signed-off-by: Yafang Shao <laoar.shao@gmail.com >
Cc: Serge Hallyn <serge@hallyn.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: Peter Zijlstra <peterz@infradead.org >
Cc: Darren Hart <dvhart@infradead.org >
Cc: Davidlohr Bueso <dave@stgolabs.net >
Cc: "André Almeida" <andrealmeid@igalia.com >
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Cc: Borislav Petkov (AMD) <bp@alien8.de >
Cc: Kalle Valo <kvalo@kernel.org >
Cc: Linus Torvalds <torvalds@linux-foundation.org >
Cc: Petr Mladek <pmladek@suse.com >
Cc: Danilo Krummrich <dakr@redhat.com >
Cc: Dave Hansen <dave.hansen@linux.intel.com >
Cc: David Airlie <airlied@gmail.com >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: James Morris <jmorris@namei.org >
Cc: Jani Nikula <jani.nikula@linux.intel.com >
Cc: Jiri Slaby <jirislaby@kernel.org >
Cc: Johannes Berg <johannes@sipsolutions.net >
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com >
Cc: Karol Herbst <kherbst@redhat.com >
Cc: Kees Cook <kees@kernel.org >
Cc: Lyude Paul <lyude@redhat.com >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Paul Moore <paul@paul-moore.com >
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com >
Cc: Simona Vetter <simona@ffwll.ch >
Cc: Tvrtko Ursulin <tursulin@ursulin.net >
Cc: Vineet Gupta <vgupta@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:15 -08:00
Dominik Karol Piątkowski
78346c34d2
kasan: fix typo in kasan_poison_new_object documentation
...
Fix presumed copy-paste typo of kasan_poison_new_object documentation
referring to kasan_unpoison_new_object.
No functional changes.
Link: https://lkml.kernel.org/r/20241220181205.9663-1-dominik.karol.piatkowski@protonmail.com
Fixes: 1ce9a05239 ("kasan: rename and document kasan_(un)poison_object_data")
ta")
Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com >
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com >
Reviewed-by: Alexander Potapenko <glider@google.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:15 -08:00
Ariel Otilibili
41c761dede
lib/inflate.c: remove dead code
...
This is a follow up from a discussion in Xen:
The if-statement tests that `res` is non-zero; meaning the case zero is
never reached.
Link: https://lore.kernel.org/all/7587b503-b2ca-4476-8dc9-e9683d4ca5f0@suse.com/
Link: https://lkml.kernel.org/r/20241219092615.644642-2-ariel.otilibili-anieli@eurecom.fr
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr >
Suggested-by: Jan Beulich <jbeulich@suse.com >
Cc: Andrew Cooper <andrew.cooper3@citrix.com >
Cc: Anthony PERARD <anthony.perard@vates.tech >
Cc: Michal Orzel <michal.orzel@amd.com >
Cc: Julien Grall <julien@xen.org >
Cc: Roger Pau Monné <roger.pau@citrix.com >
Cc: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:15 -08:00
Martin Kepplinger
052e97d9b7
init: fix removal warning for deprecated initrd loading
...
This won't be removed in 2021, no matter how hard we try.
Link: https://lkml.kernel.org/r/20241218123638.34907-1-martink@posteo.de
Signed-off-by: Martin Kepplinger <martink@posteo.de >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Joel Granados <joel.granados@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:14 -08:00
Matthew Wilcox (Oracle)
123f5d5ff2
iov_iter: remove setting of page->index
...
Nothing actually checks page->index, so just remove it.
Link: https://lkml.kernel.org/r/20241216161253.37687-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Cc: David Howells <dhowells@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:14 -08:00
Mark Tinguely
e7606f4a03
ocfs2: support large folios in ocfs2_write_zero_page()
...
Remove assumptions that a folio is PAGE_SIZE.
Link: https://lkml.kernel.org/r/20241205171653.3179945-24-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:14 -08:00
Mark Tinguely
2ebe9efc3f
ocfs2: support large folios in ocfs2_zero_cluster_folios()
...
Remove assumptions that a folio is one page in size.
Link: https://lkml.kernel.org/r/20241205171653.3179945-23-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:14 -08:00
Matthew Wilcox (Oracle)
9d063ebc7f
ocfs2: remove ocfs2_start_walk_page_trans() prototype
...
This function no longer exists.
Link: https://lkml.kernel.org/r/20241205171653.3179945-22-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:13 -08:00
Matthew Wilcox (Oracle)
d254824ef1
ocfs2: use a folio in ocfs2_fast_symlink_read_folio()
...
Use folio_end_read() instead of SetPageUptodate() and unlock_page(). Use
memcpy_to_folio() instead of open-coding a kmap_atomic() sequence.
Link: https://lkml.kernel.org/r/20241205171653.3179945-21-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:13 -08:00
Matthew Wilcox (Oracle)
03902e6561
ocfs2: convert ocfs2_read_inline_data() to take a folio
...
All callers now have a folio, so pass it in. We can use folio_fill_tail()
instead of open-coding it. Saves a call to compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-20-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:13 -08:00
Mark Tinguely
602f206a7c
ocfs2: convert ocfs2_map_and_dirty_page() to ocfs2_map_and_dirty_folio()
...
All callers now have a folio, so skip the folio->page->folio conversion.
Link: https://lkml.kernel.org/r/20241205171653.3179945-19-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:13 -08:00
Mark Tinguely
395ea2ab46
ocfs2: convert ocfs2_duplicate_clusters_by_page() to use a folio
...
Retrieve folios from the page cache, not pages, and use a folio throughout
this function. Removes seven calls to compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-18-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:12 -08:00
Mark Tinguely
9a5e08652d
ocfs2: use an array of folios instead of an array of pages
...
The ocfs2_zero_cluster_folios() / ocfs2_grab_folios() /
ocfs2_grab_eof_folios() family of functions pass around an array of pages.
Convert them to pass around an array of folios. This removes the last
caller of ocfs2_unlock_and_free_pages(), so delete it.
Link: https://lkml.kernel.org/r/20241205171653.3179945-17-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:12 -08:00
Mark Tinguely
4d434f5374
ocfs2: convert ocfs2_clear_page_regions() to ocfs2_clear_folio_regions()
...
Pass in and use the folio instead of its page.
Link: https://lkml.kernel.org/r/20241205171653.3179945-16-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:12 -08:00
Mark Tinguely
0313500d5d
ocfs2: convert ocfs2_map_page_blocks() to ocfs2_map_folio_blocks()
...
All callers now have a folio, so pass it in instead of converting
folio->page->folio.
Link: https://lkml.kernel.org/r/20241205171653.3179945-15-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:12 -08:00
Mark Tinguely
b04d305df1
ocfs2: use a folio in ocfs2_map_and_dirty_page()
...
Convert the incoming page to a folio and use it throughout the function.
Removes a couple of calls to compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-14-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:11 -08:00
Mark Tinguely
38bfefaa12
ocfs2: use a folio in ocfs2_prepare_page_for_write()
...
Update to the new APIs. Removes a few page->folio conversions.
Link: https://lkml.kernel.org/r/20241205171653.3179945-13-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:11 -08:00
Mark Tinguely
1b426db11b
ocfs2: use a folio in ocfs2_write_end_nolock()
...
Remove an access to page->index. Remove some PAGE_SIZE assumptions.
Link: https://lkml.kernel.org/r/20241205171653.3179945-12-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:11 -08:00
Mark Tinguely
ecee61651d
ocfs2: convert ocfs2_write_failure() to use a folio
...
Remove the folio->page conversion and just use the folio.
Link: https://lkml.kernel.org/r/20241205171653.3179945-11-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:11 -08:00
Mark Tinguely
7e119cff9d
ocfs2: convert w_pages to w_folios
...
Pass around an array of folios instead of an array of pages. Removes a
few calls to compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-10-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:10 -08:00
Mark Tinguely
57ea4b8920
ocfs2: convert ocfs2_inode_lock_with_page() to ocfs2_inode_lock_with_folio()
...
Saves a hidden call to compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-9-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:10 -08:00
Mark Tinguely
7654ed8899
ocfs2: convert ocfs2_readpage_inline() to take a folio
...
Save a couple of calls to compound_head() by using a folio throughout this
function.
Link: https://lkml.kernel.org/r/20241205171653.3179945-8-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:10 -08:00
Matthew Wilcox (Oracle)
b4f3b496dc
ocfs2: pass mmap_folio around instead of mmap_page
...
Saves a few hidden calls to compound_head() and accesses to page->mapping.
Link: https://lkml.kernel.org/r/20241205171653.3179945-7-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:10 -08:00
Mark Tinguely
e981f18e6d
ocfs2: use a folio in ocfs2_write_begin_inline()
...
Retrieve a folio from the page cache instead of a page and use that
folio throught the function. Saves a couple of calls to compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-6-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:09 -08:00
Mark Tinguely
0fad0a824e
ocfs2: use a folio in ocfs2_zero_new_buffers()
...
Convert to the new APIs, saving at least one hidden call to
compound_head().
Link: https://lkml.kernel.org/r/20241205171653.3179945-5-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:09 -08:00
Mark Tinguely
5290687ae3
ocfs2: convert w_target_page to w_target_folio
...
Pass a folio around instead of a page. Saves a few hidden calls to
compound_head() and removes a call to kmap_atomic().
Link: https://lkml.kernel.org/r/20241205171653.3179945-4-willy@infradead.org
Signed-off-by: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:09 -08:00
Matthew Wilcox (Oracle)
3d9e356f02
ocfs2: convert ocfs2_page_mkwrite() to use a folio
...
Pass the folio into __ocfs2_page_mkwrite() and use it throughout. Does
not attempt to support large folios.
Link: https://lkml.kernel.org/r/20241205171653.3179945-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:09 -08:00
Matthew Wilcox (Oracle)
2b4c2094da
ocfs2: handle a symlink read error correctly
...
Patch series "Convert ocfs2 to use folios".
Mark did a conversion of ocfs2 to use folios and sent it to me as a
giant patch for review ;-)
So I've redone it as individual patches, and credited Mark for the patches
where his code is substantially the same. It's not a bad way to do it;
his patch had some bugs and my patches had some bugs. Hopefully all our
bugs were different from each other. And hopefully Mark likes all the
changes I made to his code!
This patch (of 23):
If we can't read the buffer, be sure to unlock the page before returning.
Link: https://lkml.kernel.org/r/20241205171653.3179945-1-willy@infradead.org
Link: https://lkml.kernel.org/r/20241205171653.3179945-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Cc: <stable@vger.kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:08 -08:00
pangliyuan
78188dd1d2
Squashfs: don't allocate fragment caches more than fragments
...
Sometimes the actual number of fragments in image is between
0 and SQUASHFS_CACHED_FRAGMENTS, which cause additional
fragment caches to be allocated.
Sets the number of fragment caches to the minimum of fragments
and SQUASHFS_CACHED_FRAGMENTS.
Link: https://lkml.kernel.org/r/20241210090842.160853-1-pangliyuan1@huawei.com
Signed-off-by: pangliyuan <pangliyuan1@huawei.com >
Reviewed-by: Phillip Lougher <phillip@squashfs.org.uk >
Cc: <wangfangpeng1@huawei.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:08 -08:00
Luis Felipe Hernandez
0fafc9e156
lib/math: add int_sqrt test suite
...
Adds test suite for integer based square root function.
The test suite is designed to verify the correctness of the int_sqrt()
math library function.
Link: https://lkml.kernel.org/r/20241213042701.1037467-1-luis.hernandez093@gmail.com
Signed-off-by: Luis Felipe Hernandez <luis.hernandez093@gmail.com >
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com >
Cc: David Gow <davidgow@google.com >
Cc: Ricardo B. Marliere <rbm@suse.com >
Cc: Shuah Khan <skhan@linuxfoundation.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:08 -08:00
Tamir Duberstein
eb7a18ebd6
XArray: minor documentation improvements
...
- Replace "they" with "you" where "you" is used in the preceding
sentence fragment.
- Mention `xa_erase` in discussion of multi-index entries. Split this
into a separate sentence.
- Add "call" parentheses on "xa_store" for consistency and
linkification.
- Add caveat that `xa_store` and `xa_erase` are not equivalent in the
presence of `XA_FLAGS_ALLOC`.
Link: https://lkml.kernel.org/r/20241105-xarray-documentation-v5-1-8e1702321b41@gmail.com
Signed-off-by: Tamir Duberstein <tamird@gmail.com >
Acked-by: Randy Dunlap <rdunlap@infradead.org >
Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Matthew Wilcox <willy@infradead.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:08 -08:00
Daniel Yang
876a5b25d5
ocfs2: replace deprecated simple_strtol with kstrtol
...
simple_strtol() ignores overflows and has an awkward interface for error
checking. Replace with the recommended kstrtol function leads to clearer
error checking and safer conversions.
Link: https://lkml.kernel.org/r/20241115080018.5372-1-danielyangkang@gmail.com
Signed-off-by: Daniel Yang <danielyangkang@gmail.com >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Jun Piao <piaojun@huawei.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:07 -08:00
Dmitry Antipov
a0f8a9a963
ocfs2: miscellaneous spelling fixes
...
Correct spelling here and there as suggested by codespell.
Link: https://lkml.kernel.org/r/20241115151013.1404929-1-dmantipov@yandex.ru
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru >
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Jun Piao <piaojun@huawei.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:07 -08:00
Daniel Yang
08de555ae5
ocfs2: heartbeat: replace simple_strtoul with kstrtoul
...
simple_strtoul() is deprecated due to ignoring overflows and also requires
clunkier error checking. Replacing with kstrtoul() leads to safer code
and cleaner error checking.
Link: https://lkml.kernel.org/r/20241117215219.4012-1-danielyangkang@gmail.com
Signed-off-by: Daniel Yang <danielyangkang@gmail.com >
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Jun Piao <piaojun@huawei.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:07 -08:00
Thorsten Blum
386ca64d24
alpha: remove duplicate included header file
...
Remove duplicate included header file asm/fpu.h
Link: https://lkml.kernel.org/r/20241126114728.139029-1-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev >
Cc: Alexander Viro <viro@zeniv.linux.org.uk >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: Kent Overstreet <kent.overstreet@linux.dev >
Cc: Matt Turner <mattst88@gmail.com >
Cc: Pasha Tatashin <pasha.tatashin@soleen.com >
Cc: Richard Henderson <richard.henderson@linaro.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:07 -08:00
Pratyush Mittal
f3a6101b00
lib/rhashtable: fix the typo for preemptible
...
Fix the spelling of the mis-spelled word
Link: https://lkml.kernel.org/r/20241123102929.11660-1-pratyushmittal@gmail.com
Signed-off-by: Pratyush Mittal <pratyushmittal@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:06 -08:00
Mateusz Guzik
51f8bd6db5
get_task_exe_file: check PF_KTHREAD locklessly
...
Same thing as 8ac5dc6659 ("get_task_mm: check PF_KTHREAD lockless")
Nowadays PF_KTHREAD is sticky and it was never protected by ->alloc_lock.
Move the PF_KTHREAD check outside of task_lock() section to make this code
more understandable.
Link: https://lkml.kernel.org/r/20241119143526.704986-1-mjguzik@gmail.com
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com >
Acked-by: Oleg Nesterov <oleg@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:06 -08:00
Shivam Chaudhary
93b6bd4068
kernel-wide: add explicity||explicitly to spelling.txt
...
Correct the spelling dictionary so that future instances will be caught by
checkpatch, and fix the instances found.
Link: https://lkml.kernel.org/r/20241211154903.47027-1-cvam0000@gmail.com
Signed-off-by: Shivam Chaudhary <cvam0000@gmail.com >
Cc: Al Viro <viro@zeniv.linux.org.uk >
Cc: Christophe Leroy <christophe.leroy@csgroup.eu >
Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Madhavan Srinivasan <maddy@linux.ibm.com >
Cc: Michael Ellerman <mpe@ellerman.id.au >
Cc: Naveen N Rao <naveen@kernel.org >
Cc: Nicholas Piggin <npiggin@gmail.com >
Cc: Shivam Chaudhary <cvam0000@gmail.com >
Cc: Colin Ian King <colin.i.king@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-01-12 20:21:06 -08:00