]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs3: Refactor duplicate kmemdup pattern in do_action()
authorBaolin Liu <liubaolin@kylinos.cn>
Tue, 6 Jan 2026 06:34:25 +0000 (14:34 +0800)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 15 Jan 2026 04:58:02 +0000 (05:58 +0100)
commit6b3c83df9a0a61eb7a11beb1cef7ae5c2eb3efb6
treeb65bbcb5f6e005c1003560d78c1a3aaa302e7a7e
parent27b75ca4e51e3e4554dc85dbf1a0246c66106fd3
ntfs3: Refactor duplicate kmemdup pattern in do_action()

Extract the repeated pattern of duplicating attribute and updating
OpenAttr into a helper function to reduce code duplication and improve
maintainability.

Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/fslog.c