There are 3 commits. First - to improve code readability. Second - bugfix for xfstest (fixing wrong logic). Third - restructuring function logic so we can restore inode in some error cases. v2: fixed patch 1/3 - fixed typo and improved code readability Konstantin Komarov (3): fs/ntfs3: Refactoring of indx_find function fs/ntfs3: Fix double free on remount fs/ntfs3: Refactor ni_try_remove_attr_list function fs/ntfs3/frecord.c | 49 ++++++++++++++++++++++++++++++++++------------ fs/ntfs3/index.c | 25 +++++++++-------------- fs/ntfs3/record.c | 5 ++--- fs/ntfs3/super.c | 8 ++++---- 4 files changed, 52 insertions(+), 35 deletions(-) -- 2.36.1