From: Christoph Hellwig <hch@lst.de>
To: Viacheslav Dubeyko <slava@dubeyko.com>
Cc: glaubitz@physik.fu-berlin.de, frank.li@vivo.com, hch@lst.de,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
vdubeyko@coreweave.com, willy@infradead.org, brauner@kernel.org,
djwong@kernel.org
Subject: Re: [PATCH v4 6/7] hfsplus: introduce iomap-based file_operations
Date: Fri, 18 Sep 2026 15:39:35 +0200 [thread overview]
Message-ID: <20260918133935.GF18107@lst.de> (raw)
In-Reply-To: <20260914233941.2966421-7-slava@dubeyko.com>
On Mon, Sep 14, 2026 at 04:39:40PM -0700, Viacheslav Dubeyko wrote:
> This patch
Patch descriptions are not supposed to start with "this patch".
By the time this fets into git, it isn't a patch any more :)
> @@ -55,7 +58,6 @@ int hfsplus_file_fsync(struct file *file, loff_t start, loff_t end,
> error = file_write_and_wait_range(file, start, end);
> if (error)
> return error;
> - inode_lock(inode);
>
> /*
> * Sync inode metadata into the catalog and extent trees.
> @@ -114,15 +116,184 @@ int hfsplus_file_fsync(struct file *file, loff_t start, loff_t end,
> if (!test_bit(HFSPLUS_SB_NOBARRIER, &sbi->flags))
> blkdev_issue_flush(inode->i_sb->s_bdev);
>
> + return error;
> +}
Changing fsync locking feels like something that should move
into a well-documented prep patch.
> +/*
> + * hfsplus_fallback_buffered_write() - fall back to buffered I/O for the
Pointless function name in the comment.
> + * tail of a write that iomap_dio_rw() could not perform directly
> + * (unaligned tail, or no blocks could be mapped without allocation
> + * outside the direct path).
> + */
> +static ssize_t hfsplus_fallback_buffered_write(struct kiocb *iocb,
> + struct iov_iter *from)
> +{
Can this use direct_write_fallback()?
> + struct hfsplus_sb_info *sbi = HFSPLUS_SB(inode->i_sb);
> + loff_t total_capacity;
> + ssize_t ret;
> + int err;
> +
> + inode_lock(inode);
> +
> + ret = generic_write_checks(iocb, iter);
> + if (ret <= 0)
> + goto unlock;
> +
> + total_capacity = (loff_t)sbi->total_blocks << sbi->alloc_blksz_shift;
> + if (iocb->ki_pos >= total_capacity) {
This is weird. The total capacity should not matter for a write.
next prev parent reply other threads:[~2026-09-18 13:39 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 23:39 [PATCH v4 0/7] hfsplus: convert regular file I/O to iomap-based operations Viacheslav Dubeyko
2026-09-14 23:39 ` [PATCH v4 1/7] hfs/hfsplus: exchange hardcoded number of extents on named constants Viacheslav Dubeyko
2026-09-18 13:28 ` Christoph Hellwig
2026-09-14 23:39 ` [PATCH v4 2/7] hfsplus: rework hfsplus_get_block() logic Viacheslav Dubeyko
2026-09-15 2:34 ` Darrick J. Wong
2026-09-15 18:34 ` Viacheslav Dubeyko
2026-09-18 13:29 ` Christoph Hellwig
2026-09-14 23:39 ` [PATCH v4 3/7] hfsplus: take the bitmap page lock for allocate/free Viacheslav Dubeyko
2026-09-18 13:30 ` Christoph Hellwig
2026-09-14 23:39 ` [PATCH v4 4/7] hfsplus: add iomap operations for regular file data Viacheslav Dubeyko
2026-09-18 13:36 ` Christoph Hellwig
2026-09-23 23:19 ` Viacheslav Dubeyko
2026-09-14 23:39 ` [PATCH v4 5/7] hfsplus: move file related operations to file.c Viacheslav Dubeyko
2026-09-15 2:22 ` Darrick J. Wong
2026-09-18 13:31 ` Christoph Hellwig
2026-09-14 23:39 ` [PATCH v4 6/7] hfsplus: introduce iomap-based file_operations Viacheslav Dubeyko
2026-09-18 13:39 ` Christoph Hellwig [this message]
2026-09-25 0:07 ` Viacheslav Dubeyko
2026-09-25 7:15 ` Christoph Hellwig
2026-09-14 23:39 ` [PATCH v4 7/7] hfsplus: switch address_space_operations on iomap-based support Viacheslav Dubeyko
2026-09-15 2:21 ` Darrick J. Wong
2026-09-15 18:37 ` Viacheslav Dubeyko
2026-09-18 13:57 ` Christoph Hellwig
2026-09-25 22:35 ` Viacheslav Dubeyko
2026-09-28 5:36 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260918133935.GF18107@lst.de \
--to=hch@lst.de \
--cc=brauner@kernel.org \
--cc=djwong@kernel.org \
--cc=frank.li@vivo.com \
--cc=glaubitz@physik.fu-berlin.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=slava@dubeyko.com \
--cc=vdubeyko@coreweave.com \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.