* [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups
@ 2024-09-02 18:40 Darrick J. Wong
2024-09-02 18:41 ` [GIT PULL 1/8] xfs: atomic file content commits Darrick J. Wong
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:40 UTC (permalink / raw)
To: Chandan Babu R; +Cc: linux-xfs
Hi Chandan,
Please accept these pull requests containing bug fixes and cleanups for
6.12.
--D
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 1/8] xfs: atomic file content commits
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
@ 2024-09-02 18:41 ` Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 2/8] xfs: cleanups before adding metadata directories Darrick J. Wong
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:41 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, jlayton, linux-fsdevel, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit 431c1646e1f86b949fa3685efc50b660a364c2b6:
Linux 6.11-rc6 (2024-09-01 19:46:02 +1200)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/atomic-file-commits-6.12_2024-09-02
for you to fetch changes up to 398597c3ef7fb1d8fa31491c8f4f3996cff45701:
xfs: introduce new file range commit ioctls (2024-09-01 08:58:19 -0700)
----------------------------------------------------------------
xfs: atomic file content commits [v31.1 1/8]
This series creates XFS_IOC_START_COMMIT and XFS_IOC_COMMIT_RANGE ioctls
to perform the exchange only if the target file has not been changed
since a given sampling point.
This new functionality uses the mechanism underlying EXCHANGE_RANGE to
stage and commit file updates such that reader programs will see either
the old contents or the new contents in their entirety, with no chance
of torn writes. A successful call completion guarantees that the new
contents will be seen even if the system fails. The pair of ioctls
allows userspace to perform what amounts to a compare and exchange
operation on entire file contents.
Note that there are ongoing arguments in the community about how best to
implement some sort of file data write counter that nfsd could also use
to signal invalidations to clients. Until such a thing is implemented,
this patch will rely on ctime/mtime updates.
Here are the proposed manual pages:
IOCTL-XFS-COMMIT-RANGE(2) System Calls ManualIOCTL-XFS-COMMIT-RANGE(2)
NAME
ioctl_xfs_start_commit - prepare to exchange the contents of
two files ioctl_xfs_commit_range - conditionally exchange the
contents of parts of two files
SYNOPSIS
#include <sys/ioctl.h>
#include <xfs/xfs_fs.h>
int ioctl(int file2_fd, XFS_IOC_START_COMMIT, struct xfs_com‐
mit_range *arg);
int ioctl(int file2_fd, XFS_IOC_COMMIT_RANGE, struct xfs_com‐
mit_range *arg);
DESCRIPTION
Given a range of bytes in a first file file1_fd and a second
range of bytes in a second file file2_fd, this ioctl(2) ex‐
changes the contents of the two ranges if file2_fd passes cer‐
tain freshness criteria.
Before exchanging the contents, the program must call the
XFS_IOC_START_COMMIT ioctl to sample freshness data for
file2_fd. If the sampled metadata does not match the file
metadata at commit time, XFS_IOC_COMMIT_RANGE will return
EBUSY.
Exchanges are atomic with regards to concurrent file opera‐
tions. Implementations must guarantee that readers see either
the old contents or the new contents in their entirety, even if
the system fails.
The system call parameters are conveyed in structures of the
following form:
struct xfs_commit_range {
__s32 file1_fd;
__u32 pad;
__u64 file1_offset;
__u64 file2_offset;
__u64 length;
__u64 flags;
__u64 file2_freshness[5];
};
The field pad must be zero.
The fields file1_fd, file1_offset, and length define the first
range of bytes to be exchanged.
The fields file2_fd, file2_offset, and length define the second
range of bytes to be exchanged.
The field file2_freshness is an opaque field whose contents are
determined by the kernel. These file attributes are used to
confirm that file2_fd has not changed by another thread since
the current thread began staging its own update.
Both files must be from the same filesystem mount. If the two
file descriptors represent the same file, the byte ranges must
not overlap. Most disk-based filesystems require that the
starts of both ranges must be aligned to the file block size.
If this is the case, the ends of the ranges must also be so
aligned unless the XFS_EXCHANGE_RANGE_TO_EOF flag is set.
The field flags control the behavior of the exchange operation.
XFS_EXCHANGE_RANGE_TO_EOF
Ignore the length parameter. All bytes in file1_fd
from file1_offset to EOF are moved to file2_fd, and
file2's size is set to (file2_offset+(file1_length-
file1_offset)). Meanwhile, all bytes in file2 from
file2_offset to EOF are moved to file1 and file1's
size is set to (file1_offset+(file2_length-
file2_offset)).
XFS_EXCHANGE_RANGE_DSYNC
Ensure that all modified in-core data in both file
ranges and all metadata updates pertaining to the
exchange operation are flushed to persistent storage
before the call returns. Opening either file de‐
scriptor with O_SYNC or O_DSYNC will have the same
effect.
XFS_EXCHANGE_RANGE_FILE1_WRITTEN
Only exchange sub-ranges of file1_fd that are known
to contain data written by application software.
Each sub-range may be expanded (both upwards and
downwards) to align with the file allocation unit.
For files on the data device, this is one filesystem
block. For files on the realtime device, this is
the realtime extent size. This facility can be used
to implement fast atomic scatter-gather writes of
any complexity for software-defined storage targets
if all writes are aligned to the file allocation
unit.
XFS_EXCHANGE_RANGE_DRY_RUN
Check the parameters and the feasibility of the op‐
eration, but do not change anything.
RETURN VALUE
On error, -1 is returned, and errno is set to indicate the er‐
ror.
ERRORS
Error codes can be one of, but are not limited to, the follow‐
ing:
EBADF file1_fd is not open for reading and writing or is open
for append-only writes; or file2_fd is not open for
reading and writing or is open for append-only writes.
EBUSY The file2 inode number and timestamps supplied do not
match file2_fd.
EINVAL The parameters are not correct for these files. This
error can also appear if either file descriptor repre‐
sents a device, FIFO, or socket. Disk filesystems gen‐
erally require the offset and length arguments to be
aligned to the fundamental block sizes of both files.
EIO An I/O error occurred.
EISDIR One of the files is a directory.
ENOMEM The kernel was unable to allocate sufficient memory to
perform the operation.
ENOSPC There is not enough free space in the filesystem ex‐
change the contents safely.
EOPNOTSUPP
The filesystem does not support exchanging bytes between
the two files.
EPERM file1_fd or file2_fd are immutable.
ETXTBSY
One of the files is a swap file.
EUCLEAN
The filesystem is corrupt.
EXDEV file1_fd and file2_fd are not on the same mounted
filesystem.
CONFORMING TO
This API is XFS-specific.
USE CASES
Several use cases are imagined for this system call. Coordina‐
tion between multiple threads is performed by the kernel.
The first is a filesystem defragmenter, which copies the con‐
tents of a file into another file and wishes to exchange the
space mappings of the two files, provided that the original
file has not changed.
An example program might look like this:
int fd = open("/some/file", O_RDWR);
int temp_fd = open("/some", O_TMPFILE | O_RDWR);
struct stat sb;
struct xfs_commit_range args = {
.flags = XFS_EXCHANGE_RANGE_TO_EOF,
};
/* gather file2's freshness information */
ioctl(fd, XFS_IOC_START_COMMIT, &args);
fstat(fd, &sb);
/* make a fresh copy of the file with terrible alignment to avoid reflink */
clone_file_range(fd, NULL, temp_fd, NULL, 1, 0);
clone_file_range(fd, NULL, temp_fd, NULL, sb.st_size - 1, 0);
/* commit the entire update */
args.file1_fd = temp_fd;
ret = ioctl(fd, XFS_IOC_COMMIT_RANGE, &args);
if (ret && errno == EBUSY)
printf("file changed while defrag was underway
");
The second is a data storage program that wants to commit non-
contiguous updates to a file atomically. This program cannot
coordinate updates to the file and therefore relies on the ker‐
nel to reject the COMMIT_RANGE command if the file has been up‐
dated by someone else. This can be done by creating a tempo‐
rary file, calling FICLONE(2) to share the contents, and stag‐
ing the updates into the temporary file. The FULL_FILES flag
is recommended for this purpose. The temporary file can be
deleted or punched out afterwards.
An example program might look like this:
int fd = open("/some/file", O_RDWR);
int temp_fd = open("/some", O_TMPFILE | O_RDWR);
struct xfs_commit_range args = {
.flags = XFS_EXCHANGE_RANGE_TO_EOF,
};
/* gather file2's freshness information */
ioctl(fd, XFS_IOC_START_COMMIT, &args);
ioctl(temp_fd, FICLONE, fd);
/* append 1MB of records */
lseek(temp_fd, 0, SEEK_END);
write(temp_fd, data1, 1000000);
/* update record index */
pwrite(temp_fd, data1, 600, 98765);
pwrite(temp_fd, data2, 320, 54321);
pwrite(temp_fd, data2, 15, 0);
/* commit the entire update */
args.file1_fd = temp_fd;
ret = ioctl(fd, XFS_IOC_COMMIT_RANGE, &args);
if (ret && errno == EBUSY)
printf("file changed before commit; will roll back
");
NOTES
Some filesystems may limit the amount of data or the number of
extents that can be exchanged in a single call.
SEE ALSO
ioctl(2)
XFS 2024-02-18 IOCTL-XFS-COMMIT-RANGE(2)
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Darrick J. Wong (1):
xfs: introduce new file range commit ioctls
fs/xfs/libxfs/xfs_fs.h | 26 +++++++++
fs/xfs/xfs_exchrange.c | 143 ++++++++++++++++++++++++++++++++++++++++++++++++-
fs/xfs/xfs_exchrange.h | 16 +++++-
fs/xfs/xfs_ioctl.c | 4 ++
fs/xfs/xfs_trace.h | 57 +++++++++++++++++++-
5 files changed, 243 insertions(+), 3 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 2/8] xfs: cleanups before adding metadata directories
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
2024-09-02 18:41 ` [GIT PULL 1/8] xfs: atomic file content commits Darrick J. Wong
@ 2024-09-02 18:42 ` Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 3/8] xfs: clean up the rtbitmap code Darrick J. Wong
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:42 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: dchinner, hch, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit 398597c3ef7fb1d8fa31491c8f4f3996cff45701:
xfs: introduce new file range commit ioctls (2024-09-01 08:58:19 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/metadir-cleanups-6.12_2024-09-02
for you to fetch changes up to 390b4775d6787706b1846f15623a68e576ec900c:
xfs: pass the icreate args object to xfs_dialloc (2024-09-01 08:58:19 -0700)
----------------------------------------------------------------
xfs: cleanups before adding metadata directories [v4.2 2/8]
Before we start adding code for metadata directory trees, let's clean up
some warts in the realtime bitmap code and the inode allocator code.
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Christoph Hellwig (1):
xfs: match on the global RT inode numbers in xfs_is_metadata_inode
Darrick J. Wong (2):
xfs: validate inumber in xfs_iget
xfs: pass the icreate args object to xfs_dialloc
fs/xfs/libxfs/xfs_ialloc.c | 5 +++--
fs/xfs/libxfs/xfs_ialloc.h | 4 +++-
fs/xfs/scrub/tempfile.c | 2 +-
fs/xfs/xfs_icache.c | 2 +-
fs/xfs/xfs_inode.c | 4 ++--
fs/xfs/xfs_inode.h | 7 ++++---
fs/xfs/xfs_qm.c | 2 +-
fs/xfs/xfs_symlink.c | 2 +-
8 files changed, 16 insertions(+), 12 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 3/8] xfs: clean up the rtbitmap code
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
2024-09-02 18:41 ` [GIT PULL 1/8] xfs: atomic file content commits Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 2/8] xfs: cleanups before adding metadata directories Darrick J. Wong
@ 2024-09-02 18:42 ` Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 4/8] xfs: fixes for the realtime allocator Darrick J. Wong
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:42 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit 390b4775d6787706b1846f15623a68e576ec900c:
xfs: pass the icreate args object to xfs_dialloc (2024-09-01 08:58:19 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/rtbitmap-cleanups-6.12_2024-09-02
for you to fetch changes up to 0a59e4f3e1670bc49d60e1bd1a9b19ca156ae9cb:
xfs: push transaction join out of xfs_rtbitmap_lock and xfs_rtgroup_lock (2024-09-01 08:58:19 -0700)
----------------------------------------------------------------
xfs: clean up the rtbitmap code [v4.2 3/8]
Here are some cleanups and reorganization of the realtime bitmap code to share
more of that code between userspace and the kernel.
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Christoph Hellwig (12):
xfs: remove xfs_validate_rtextents
xfs: factor out a xfs_validate_rt_geometry helper
xfs: make the RT rsum_cache mandatory
xfs: remove the limit argument to xfs_rtfind_back
xfs: assert a valid limit in xfs_rtfind_forw
xfs: add bounds checking to xfs_rt{bitmap,summary}_read_buf
xfs: cleanup the calling convention for xfs_rtpick_extent
xfs: push the calls to xfs_rtallocate_range out to xfs_bmap_rtalloc
xfs: factor out a xfs_growfs_rt_bmblock helper
xfs: factor out a xfs_last_rt_bmblock helper
xfs: factor out rtbitmap/summary initialization helpers
xfs: push transaction join out of xfs_rtbitmap_lock and xfs_rtgroup_lock
fs/xfs/libxfs/xfs_bmap.c | 3 +-
fs/xfs/libxfs/xfs_rtbitmap.c | 192 ++++++++++++++--
fs/xfs/libxfs/xfs_rtbitmap.h | 33 +--
fs/xfs/libxfs/xfs_sb.c | 64 +++---
fs/xfs/libxfs/xfs_sb.h | 1 +
fs/xfs/libxfs/xfs_types.h | 12 -
fs/xfs/xfs_rtalloc.c | 535 +++++++++++++++++--------------------------
7 files changed, 438 insertions(+), 402 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 4/8] xfs: fixes for the realtime allocator
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
` (2 preceding siblings ...)
2024-09-02 18:42 ` [GIT PULL 3/8] xfs: clean up the rtbitmap code Darrick J. Wong
@ 2024-09-02 18:42 ` Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 5/8] xfs: cleanups " Darrick J. Wong
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:42 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit 0a59e4f3e1670bc49d60e1bd1a9b19ca156ae9cb:
xfs: push transaction join out of xfs_rtbitmap_lock and xfs_rtgroup_lock (2024-09-01 08:58:19 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/rtalloc-fixes-6.12_2024-09-02
for you to fetch changes up to df8b181f1551581e96076a653cdca43468093c0f:
xfs: simplify xfs_rtalloc_query_range (2024-09-01 08:58:19 -0700)
----------------------------------------------------------------
xfs: fixes for the realtime allocator [v4.2 4/8]
While I was reviewing how to integrate realtime allocation groups with
the rt allocator, I noticed several bugs in the existing allocation code
with regards to calculating the maximum range of rtx to scan for free
space. This series fixes those range bugs and cleans up a few things
too.
I also added a few cleanups from Christoph.
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Christoph Hellwig (4):
xfs: use the recalculated transaction reservation in xfs_growfs_rt_bmblock
xfs: ensure rtx mask/shift are correct after growfs
xfs: remove xfs_rtb_to_rtxrem
xfs: simplify xfs_rtalloc_query_range
Darrick J. Wong (6):
xfs: don't return too-short extents from xfs_rtallocate_extent_block
xfs: don't scan off the end of the rt volume in xfs_rtallocate_extent_block
xfs: refactor aligning bestlen to prod
xfs: clean up xfs_rtallocate_extent_exact a bit
xfs: reduce excessive clamping of maxlen in xfs_rtallocate_extent_near
xfs: fix broken variable-sized allocation detection in xfs_rtallocate_extent_block
fs/xfs/libxfs/xfs_rtbitmap.c | 51 +++++++--------
fs/xfs/libxfs/xfs_rtbitmap.h | 21 +------
fs/xfs/libxfs/xfs_sb.c | 12 +++-
fs/xfs/libxfs/xfs_sb.h | 2 +
fs/xfs/xfs_discard.c | 15 +++--
fs/xfs/xfs_fsmap.c | 11 ++--
fs/xfs/xfs_rtalloc.c | 145 +++++++++++++++++++++++--------------------
7 files changed, 124 insertions(+), 133 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 5/8] xfs: cleanups for the realtime allocator
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
` (3 preceding siblings ...)
2024-09-02 18:42 ` [GIT PULL 4/8] xfs: fixes for the realtime allocator Darrick J. Wong
@ 2024-09-02 18:42 ` Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 6/8] xfs: cleanups for quota mount Darrick J. Wong
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:42 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit df8b181f1551581e96076a653cdca43468093c0f:
xfs: simplify xfs_rtalloc_query_range (2024-09-01 08:58:19 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/rtalloc-cleanups-6.12_2024-09-02
for you to fetch changes up to 2ca7b9d7b80810b2b45b78b8a4b4fa78a1ddc2dd:
xfs: move xfs_ioc_getfsmap out of xfs_ioctl.c (2024-09-01 08:58:19 -0700)
----------------------------------------------------------------
xfs: cleanups for the realtime allocator [v4.2 5/8]
This third series cleans up the realtime allocator code so that it'll be
somewhat less difficult to figure out what on earth it's doing. We also
rearrange the fsmap code a bit.
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Christoph Hellwig (7):
xfs: clean up the ISVALID macro in xfs_bmap_adjacent
xfs: factor out a xfs_rtallocate helper
xfs: rework the rtalloc fallback handling
xfs: factor out a xfs_rtallocate_align helper
xfs: make the rtalloc start hint a xfs_rtblock_t
xfs: remove xfs_{rtbitmap,rtsummary}_wordcount
xfs: replace m_rsumsize with m_rsumblocks
Darrick J. Wong (3):
xfs: add xchk_setup_nothing and xchk_nothing helpers
xfs: rearrange xfs_fsmap.c a little bit
xfs: move xfs_ioc_getfsmap out of xfs_ioctl.c
fs/xfs/libxfs/xfs_bmap.c | 55 +++---
fs/xfs/libxfs/xfs_rtbitmap.c | 33 +---
fs/xfs/libxfs/xfs_rtbitmap.h | 7 -
fs/xfs/libxfs/xfs_trans_resv.c | 2 +-
fs/xfs/scrub/common.h | 29 +--
fs/xfs/scrub/rtsummary.c | 11 +-
fs/xfs/scrub/rtsummary.h | 2 +-
fs/xfs/scrub/rtsummary_repair.c | 12 +-
fs/xfs/scrub/scrub.h | 29 +--
fs/xfs/xfs_fsmap.c | 402 ++++++++++++++++++++++++++--------------
fs/xfs/xfs_fsmap.h | 6 +-
fs/xfs/xfs_ioctl.c | 130 -------------
fs/xfs/xfs_mount.h | 2 +-
fs/xfs/xfs_rtalloc.c | 246 ++++++++++++++----------
14 files changed, 477 insertions(+), 489 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 6/8] xfs: cleanups for quota mount
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
` (4 preceding siblings ...)
2024-09-02 18:42 ` [GIT PULL 5/8] xfs: cleanups " Darrick J. Wong
@ 2024-09-02 18:43 ` Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 7/8] xfs: various bug fixes for 6.12 Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 8/8] xfs: cleanups for inode rooted btree code Darrick J. Wong
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:43 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit 2ca7b9d7b80810b2b45b78b8a4b4fa78a1ddc2dd:
xfs: move xfs_ioc_getfsmap out of xfs_ioctl.c (2024-09-01 08:58:19 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/quota-cleanups-6.12_2024-09-02
for you to fetch changes up to 2c4162be6c10d3bc4884c211ae4787fc84c4fe3c:
xfs: refactor loading quota inodes in the regular case (2024-09-01 08:58:20 -0700)
----------------------------------------------------------------
xfs: cleanups for quota mount [v4.2 6/8]
Refactor the quota file loading code in preparation for adding metadata
directory trees. Did you know that quotarm works even when quota isn't active?
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Darrick J. Wong (1):
xfs: refactor loading quota inodes in the regular case
fs/xfs/xfs_qm.c | 46 +++++++++++++++++++++++++++++++++++------
fs/xfs/xfs_qm.h | 3 +++
fs/xfs/xfs_qm_syscalls.c | 13 ++++++------
fs/xfs/xfs_quotaops.c | 53 ++++++++++++++++++++++++++++--------------------
4 files changed, 80 insertions(+), 35 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 7/8] xfs: various bug fixes for 6.12
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
` (5 preceding siblings ...)
2024-09-02 18:43 ` [GIT PULL 6/8] xfs: cleanups for quota mount Darrick J. Wong
@ 2024-09-02 18:43 ` Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 8/8] xfs: cleanups for inode rooted btree code Darrick J. Wong
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:43 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, kernel, linux-xfs, sam
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit 2c4162be6c10d3bc4884c211ae4787fc84c4fe3c:
xfs: refactor loading quota inodes in the regular case (2024-09-01 08:58:20 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/xfs-fixes-6.12_2024-09-02
for you to fetch changes up to de55149b6639e903c4d06eb0474ab2c05060e61d:
xfs: fix a sloppy memory handling bug in xfs_iroot_realloc (2024-09-01 08:58:20 -0700)
----------------------------------------------------------------
xfs: various bug fixes for 6.12 [7/8]
Various bug fixes for 6.12.
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Darrick J. Wong (3):
xfs: fix C++ compilation errors in xfs_fs.h
xfs: fix FITRIM reporting again
xfs: fix a sloppy memory handling bug in xfs_iroot_realloc
fs/xfs/libxfs/xfs_fs.h | 5 +++--
fs/xfs/libxfs/xfs_inode_fork.c | 10 +++++-----
fs/xfs/xfs_discard.c | 2 +-
3 files changed, 9 insertions(+), 8 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [GIT PULL 8/8] xfs: cleanups for inode rooted btree code
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
` (6 preceding siblings ...)
2024-09-02 18:43 ` [GIT PULL 7/8] xfs: various bug fixes for 6.12 Darrick J. Wong
@ 2024-09-02 18:43 ` Darrick J. Wong
7 siblings, 0 replies; 9+ messages in thread
From: Darrick J. Wong @ 2024-09-02 18:43 UTC (permalink / raw)
To: chandanbabu, djwong; +Cc: hch, linux-xfs
Hi Chandan,
Please pull this branch with changes for xfs for 6.12-rc1.
As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts. Please let me know if you
encounter any problems.
--D
The following changes since commit de55149b6639e903c4d06eb0474ab2c05060e61d:
xfs: fix a sloppy memory handling bug in xfs_iroot_realloc (2024-09-01 08:58:20 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/btree-cleanups-6.12_2024-09-02
for you to fetch changes up to 411a71256de6f5a0015a28929cfbe6bc36c503dc:
xfs: standardize the btree maxrecs function parameters (2024-09-01 08:58:20 -0700)
----------------------------------------------------------------
xfs: cleanups for inode rooted btree code [v4.2 8/8]
This series prepares the btree code to support realtime reverse mapping btrees
by refactoring xfs_ifork_realloc to be fed a per-btree ops structure so that it
can handle multiple types of inode-rooted btrees. It moves on to refactoring
the btree code to use the new realloc routines.
With a bit of luck, this should all go splendidly.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
----------------------------------------------------------------
Darrick J. Wong (2):
xfs: replace shouty XFS_BM{BT,DR} macros
xfs: standardize the btree maxrecs function parameters
fs/xfs/libxfs/xfs_alloc_btree.c | 6 +-
fs/xfs/libxfs/xfs_alloc_btree.h | 3 +-
fs/xfs/libxfs/xfs_attr_leaf.c | 8 +-
fs/xfs/libxfs/xfs_bmap.c | 42 ++++----
fs/xfs/libxfs/xfs_bmap_btree.c | 24 ++---
fs/xfs/libxfs/xfs_bmap_btree.h | 207 +++++++++++++++++++++++++------------
fs/xfs/libxfs/xfs_ialloc.c | 4 +-
fs/xfs/libxfs/xfs_ialloc_btree.c | 6 +-
fs/xfs/libxfs/xfs_ialloc_btree.h | 3 +-
fs/xfs/libxfs/xfs_inode_fork.c | 34 +++---
fs/xfs/libxfs/xfs_refcount_btree.c | 5 +-
fs/xfs/libxfs/xfs_refcount_btree.h | 3 +-
fs/xfs/libxfs/xfs_rmap_btree.c | 7 +-
fs/xfs/libxfs/xfs_rmap_btree.h | 3 +-
fs/xfs/libxfs/xfs_sb.c | 16 +--
fs/xfs/libxfs/xfs_trans_resv.c | 2 +-
fs/xfs/scrub/bmap_repair.c | 2 +-
fs/xfs/scrub/inode_repair.c | 12 +--
fs/xfs/xfs_bmap_util.c | 4 +-
19 files changed, 237 insertions(+), 154 deletions(-)
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-09-02 18:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 18:40 [GIT PULLBOMB 6.12] xfs: a ton of bugfixes and cleanups Darrick J. Wong
2024-09-02 18:41 ` [GIT PULL 1/8] xfs: atomic file content commits Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 2/8] xfs: cleanups before adding metadata directories Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 3/8] xfs: clean up the rtbitmap code Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 4/8] xfs: fixes for the realtime allocator Darrick J. Wong
2024-09-02 18:42 ` [GIT PULL 5/8] xfs: cleanups " Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 6/8] xfs: cleanups for quota mount Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 7/8] xfs: various bug fixes for 6.12 Darrick J. Wong
2024-09-02 18:43 ` [GIT PULL 8/8] xfs: cleanups for inode rooted btree code Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox