[GIT PULL] ntfs3: bugfixes for 6.11

From: Konstantin Komarov
Date: Mon Jul 22 2024 - 05:56:13 EST


Please pull this branch containing ntfs3 code for 6.11.

All changed code was in linux-next branch for several weeks.

Regards,
Konstantin

The following changes since commit 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0:

Linux 6.10-rc1 (2024-05-26 15:20:12 -0700)

are available in the Git repository at:

https://github.com/Paragon-Software-Group/linux-ntfs3.git tags/ntfs3_for_6.11

for you to fetch changes up to 911daf695a740d9a58daef65dabfb5f69f18190f:

fs/ntfs3: Fix formatting, change comments, renaming (2024-07-11 12:19:46 +0300)

----------------------------------------------------------------
ntfs3 changes for 6.11-rc1

Added:
simple fileattr has been implement.
Fixed:
transform resident to nonresident for compressed files;
the format of the "nocase" mount option;
getting file type;
many other internal bugs.
Refactored:
unused function and macros have been removed;
partial transition from page to folio (suggested by Matthew Wilcox);
legacy ntfs support.

----------------------------------------------------------------
Andy Shevchenko (1):
fs/ntfs3: Drop stray '\' (backslash) in formatting string

Huacai Chen (1):
fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed

Konstantin Komarov (29):
fs/ntfs3: Remove unused function
fs/ntfs3: Merge synonym COMPRESSION_UNIT and NTFS_LZNT_CUNIT
fs/ntfs3: Simplify initialization of $AttrDef and $UpCase
fs/ntfs3: Use macros NTFS_LABEL_MAX_LENGTH instead of hardcoded value
fs/ntfs3: Remove unused macros MAXIMUM_REPARSE_DATA_BUFFER_SIZE
fs/ntfs3: Fix transform resident to nonresident for compressed files
fs/ntfs3: Deny getting attr data block in compressed frame
fs/ntfs3: Missed NI_FLAG_UPDATE_PARENT setting
fs/ntfs3: Fix getting file type
fs/ntfs3: Remove sync_blockdev_nowait()
fs/ntfs3: Add missing .dirty_folio in address_space_operations
fs/ntfs3: Fix attr_insert_range at end of file
fs/ntfs3: Replace inode_trylock with inode_lock
fs/ntfs3: One more reason to mark inode bad
fs/ntfs3: Correct undo if ntfs_create_inode failed
fs/ntfs3: Add a check for attr_names and oatbl
fs/ntfs3: Rename variables
fs/ntfs3: Add some comments
fs/ntfs3: Fix field-spanning write in INDEX_HDR
fs/ntfs3: Fix the format of the "nocase" mount option
fs/ntfs3: Missed error return
fs/ntfs3: Keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP
fs/ntfs3: Do copy_to_user out of run_lock
fs/ntfs3: Check more cases when directory is corrupted
fs/ntfs3: Minor ntfs_list_ea refactoring
fs/ntfs3: Use function file_inode to get inode from file
fs/ntfs3: Redesign legacy ntfs support
fs/ntfs3: Implement simple fileattr
fs/ntfs3: Fix formatting, change comments, renaming

Matthew Wilcox (Oracle) (10):
ntfs3: Convert ntfs_read_folio to use a folio
ntfs3: Convert ntfs_write_begin to use a folio
ntfs3: Convert attr_data_read_resident() to take a folio
ntfs3: Convert ntfs_write_end() to work on a folio
ntfs3: Convert attr_data_write_resident to use a folio
ntfs3: Convert attr_make_nonresident to use a folio
ntfs3: Remove calls to set/clear the error flag
ntfs3: Convert ntfs_get_frame_pages() to use a folio
ntfs3: Convert ni_readpage_cmpr() to take a folio
ntfs3: Convert attr_wof_frame_info() to use a folio

lei lu (1):
fs/ntfs3: Validate ff offset

fs/ntfs3/attrib.c | 132 ++++++++++++++++++++++++++++-------------------------
fs/ntfs3/bitmap.c | 2 +-
fs/ntfs3/dir.c | 57 ++++++++++++++---------
fs/ntfs3/file.c | 124 +++++++++++++++++++++++++++++++++++++------------
fs/ntfs3/frecord.c | 110 +++++++++++++++++++++++++++++++++++---------
fs/ntfs3/fslog.c | 77 +++++++++++++++++++++----------
fs/ntfs3/fsntfs.c | 11 +++--
fs/ntfs3/index.c | 4 +-
fs/ntfs3/inode.c | 119 ++++++++++++++++++++++++-----------------------
fs/ntfs3/namei.c | 6 +--
fs/ntfs3/ntfs.h | 15 ++----
fs/ntfs3/ntfs_fs.h | 36 ++++++---------
fs/ntfs3/super.c | 71 +++++++++++-----------------
fs/ntfs3/xattr.c | 25 +++++-----
14 files changed, 480 insertions(+), 309 deletions(-)