aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorJavier Martinez Canillas <[email protected]>2022-06-10 09:57:20 +0200
committerakpm <[email protected]>2022-06-16 19:58:22 -0700
commitda87e1725ae2136baeb9aac04c572c283afc917f (patch)
tree5819ea0d697708730d1b0e394c8db7fb25989cac /scripts/gdb/linux/mm.py
parent204d03203a145b443cd8676dc12dbb47e1a3751f (diff)
fat: add renameat2 RENAME_EXCHANGE flag support
The renameat2 RENAME_EXCHANGE flag allows to atomically exchange two paths but is currently not supported by the Linux vfat filesystem driver. Add a vfat_rename_exchange() helper function that implements this support. The super block lock is acquired during the operation to ensure atomicity, and in the error path actions made are reversed also with the mutex held. It makes the operation as transactional as possible, within the limitation impossed by vfat due not having a journal with logs to replay. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Javier Martinez Canillas <[email protected]> Acked-by: OGAWA Hirofumi <[email protected]> Cc: Alexander Larsson <[email protected]> Cc: Christian Kellner <[email protected]> Cc: Chung-Chiang Cheng <[email protected]> Cc: Colin Walters <[email protected]> Cc: Lennart Poettering <[email protected]> Cc: Muhammad Usama Anjum <[email protected]> Cc: Peter Jones <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions