Re: [f2fs-dev] [PATCH v5 00/13] Move fscrypt and fsverity info out of struct inode

2025-08-15 Thread Christian Brauner via Linux-f2fs-devel
On Mon, Aug 11, 2025 at 09:39:07AM -0700, Eric Biggers wrote: > On Mon, Aug 11, 2025 at 03:34:35PM +0200, Christian Brauner wrote: > > On Mon, Aug 11, 2025 at 03:17:01PM +0200, Christian Brauner wrote: > > > On Sun, Aug 10, 2025 at 02:03:02AM -0700, Eric Biggers wrote: > >

Re: [f2fs-dev] [PATCH v5 00/13] Move fscrypt and fsverity info out of struct inode

2025-08-11 Thread Christian Brauner via Linux-f2fs-devel
> The fs-specific field solution from this patchset is much more efficient > than the rhashtable: efficient enough that we don't really have to worry > about it, regardless of fscrypt or fsverity. So I think it's a good > middle ground, and I'd like to just do it this way. I agree.

Re: [f2fs-dev] [PATCH v5 00/13] Move fscrypt and fsverity info out of struct inode

2025-08-11 Thread Christian Brauner via Linux-f2fs-devel
On Mon, Aug 11, 2025 at 03:17:01PM +0200, Christian Brauner wrote: > On Sun, Aug 10, 2025 at 02:03:02AM -0700, Eric Biggers wrote: > > On Sun, Aug 10, 2025 at 10:47:32AM +0200, Christian Brauner wrote: > > > On Sun, Aug 10, 2025 at 12:56:53AM -0700, Eric Biggers wrote: > >

Re: [f2fs-dev] [PATCH v5 00/13] Move fscrypt and fsverity info out of struct inode

2025-08-11 Thread Christian Brauner via Linux-f2fs-devel
On Sun, Aug 10, 2025 at 02:03:02AM -0700, Eric Biggers wrote: > On Sun, Aug 10, 2025 at 10:47:32AM +0200, Christian Brauner wrote: > > On Sun, Aug 10, 2025 at 12:56:53AM -0700, Eric Biggers wrote: > > > This is a cleaned-up implementation of moving the i_crypt_info and > >

Re: [f2fs-dev] [PATCH v5 00/13] Move fscrypt and fsverity info out of struct inode

2025-08-10 Thread Christian Brauner via Linux-f2fs-devel
On Sun, Aug 10, 2025 at 12:56:53AM -0700, Eric Biggers wrote: > This is a cleaned-up implementation of moving the i_crypt_info and > i_verity_info pointers out of 'struct inode' and into the fs-specific > part of the inode, as proposed previously by Christian at > https://lore.kernel.org/r/20250723

Re: [f2fs-dev] [PATCH v4 1/6] fs: enhance and rename shutdown() callback to remove_bdev()

2025-07-11 Thread Christian Brauner via Linux-f2fs-devel
On Thu, Jul 10, 2025 at 07:24:46PM +0930, Qu Wenruo wrote: > > > 在 2025/7/10 18:10, Christian Brauner 写道: > > On Tue, Jul 08, 2025 at 01:20:50PM -0700, Darrick J. Wong wrote: > > > On Tue, Jul 08, 2025 at 12:20:00PM +0200, Jan Kara wrote: > > > > On Mon 07-0

Re: [f2fs-dev] [PATCH v4 1/6] fs: enhance and rename shutdown() callback to remove_bdev()

2025-07-10 Thread Christian Brauner via Linux-f2fs-devel
On Tue, Jul 08, 2025 at 01:20:50PM -0700, Darrick J. Wong wrote: > On Tue, Jul 08, 2025 at 12:20:00PM +0200, Jan Kara wrote: > > On Mon 07-07-25 17:45:32, Darrick J. Wong wrote: > > > On Tue, Jul 08, 2025 at 08:52:47AM +0930, Qu Wenruo wrote: > > > > 在 2025/7/8 08:32, Dave Chinner 写道: > > > > > On

Re: [f2fs-dev] [PATCH v4 1/6] fs: enhance and rename shutdown() callback to remove_bdev()

2025-07-10 Thread Christian Brauner via Linux-f2fs-devel
On Wed, Jul 09, 2025 at 08:59:42AM +1000, Dave Chinner wrote: > On Tue, Jul 08, 2025 at 09:55:14AM +0200, Christian Brauner wrote: > > On Mon, Jul 07, 2025 at 05:45:32PM -0700, Darrick J. Wong wrote: > > > On Tue, Jul 08, 2025 at 08:52:47AM +0930, Qu Wenruo wrote: > > >

Re: [f2fs-dev] [PATCH v4 1/6] fs: enhance and rename shutdown() callback to remove_bdev()

2025-07-08 Thread Christian Brauner via Linux-f2fs-devel
On Mon, Jul 07, 2025 at 05:45:32PM -0700, Darrick J. Wong wrote: > On Tue, Jul 08, 2025 at 08:52:47AM +0930, Qu Wenruo wrote: > > > > > > 在 2025/7/8 08:32, Dave Chinner 写道: > > > On Fri, Jul 04, 2025 at 10:12:29AM +0930, Qu Wenruo wrote: > > > > Currently all the filesystems implementing the > >

Re: [f2fs-dev] (subset) [PATCH v4 1/6] fs: enhance and rename shutdown() callback to remove_bdev()

2025-07-04 Thread Christian Brauner via Linux-f2fs-devel
On Fri, 04 Jul 2025 10:12:29 +0930, Qu Wenruo wrote: > Currently all the filesystems implementing the > super_opearations::shutdown() callback can not afford losing a device. > > Thus fs_bdev_mark_dead() will just call the shutdown() callback for the > involved filesystem. > > But it will no long

Re: [f2fs-dev] [PATCH v2 1/6] fs: enhance and rename shutdown() callback to remove_bdev()

2025-07-01 Thread Christian Brauner via Linux-f2fs-devel
On Tue, Jul 01, 2025 at 04:05:03PM +0930, Qu Wenruo wrote: > > > 在 2025/7/1 15:44, Christoph Hellwig 写道: > > On Tue, Jul 01, 2025 at 03:02:34PM +0930, Qu Wenruo wrote: > > > To allow those multi-device filesystems to be integrated to use > > > fs_holder_ops: > > > > > > - Rename shutdown() call

Re: [f2fs-dev] [PATCH 00/10] convert the majority of file systems to mmap_prepare

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Mon, 16 Jun 2025 20:33:19 +0100, Lorenzo Stoakes wrote: > REVIEWER'S NOTES > > > I am basing this on the mm-new branch in Andrew's tree, so let me know if I > should rebase anything here. Given the mm bits touched I did think perhaps > we should take it through the mm tree, how

Re: [f2fs-dev] [PATCH 10/10] fs: replace mmap hook with .mmap_prepare for simple mappings

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Tue, Jun 17, 2025 at 12:28:17PM +0200, Jan Kara wrote: > On Mon 16-06-25 20:33:29, Lorenzo Stoakes wrote: > > Since commit c84bf6dd2b83 ("mm: introduce new .mmap_prepare() file > > callback"), the f_op->mmap() hook has been deprecated in favour of > > f_op->mmap_prepare(). > > > > This callback

Re: [f2fs-dev] [PATCH 09/10] fs: convert most other generic_file_*mmap() users to .mmap_prepare()

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Tue, Jun 17, 2025 at 12:23:41PM +0200, Jan Kara wrote: > On Mon 16-06-25 20:33:28, Lorenzo Stoakes wrote: > > Update nearly all generic_file_mmap() and generic_file_readonly_mmap() > > callers to use generic_file_mmap_prepare() and > > generic_file_readonly_mmap_prepare() respectively. > > > >

Re: [f2fs-dev] [PATCH 03/10] fs: consistently use file_has_valid_mmap_hooks() helper

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Tue, Jun 17, 2025 at 12:08:13PM +0200, Jan Kara wrote: > On Tue 17-06-25 06:25:34, Lorenzo Stoakes wrote: > > On Mon, Jun 16, 2025 at 10:11:28PM -0700, Christoph Hellwig wrote: > > > On Mon, Jun 16, 2025 at 08:33:22PM +0100, Lorenzo Stoakes wrote: > > > > Since commit c84bf6dd2b83 ("mm: introduc

Re: [f2fs-dev] [PATCH 06/10] fs/xfs: transition from deprecated .mmap hook to .mmap_prepare

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Mon, Jun 16, 2025 at 10:08:03PM -0700, Christoph Hellwig wrote: > On Mon, Jun 16, 2025 at 08:33:25PM +0100, Lorenzo Stoakes wrote: > > STATIC int > > -xfs_file_mmap( > > - struct file *file, > > - struct vm_area_struct *vma) > > +xfs_file_mmap_prepare( > > + struct vm_area_d

Re: [f2fs-dev] [PATCH 04/10] fs/dax: make it possible to check dev dax support without a VMA

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Mon, Jun 16, 2025 at 09:26:54PM +0100, Matthew Wilcox wrote: > On Mon, Jun 16, 2025 at 08:33:23PM +0100, Lorenzo Stoakes wrote: > > fs/ext4/file.c | 2 +- > > fs/xfs/xfs_file.c | 3 ++- > > Both of these already have the inode from the file ... > > > +static inline bool daxdev_mapping

Re: [f2fs-dev] [PATCH 00/10] convert the majority of file systems to mmap_prepare

2025-06-17 Thread Christian Brauner via Linux-f2fs-devel
On Mon, Jun 16, 2025 at 04:11:11PM -0700, Andrew Morton wrote: > On Mon, 16 Jun 2025 20:33:19 +0100 Lorenzo Stoakes > wrote: > > > I am basing this on the mm-new branch in Andrew's tree, so let me know if I > > should rebase anything here. Given the mm bits touched I did think perhaps > > we sho

Re: [f2fs-dev] [PATCH] fs/writeback: convert wbc_account_cgroup_owner to take a folio

2024-10-28 Thread Christian Brauner via Linux-f2fs-devel
On Thu, 26 Sep 2024 16:01:21 +0200, Pankaj Raghav (Samsung) wrote: > Most of the callers of wbc_account_cgroup_owner() are converting a folio > to page before calling the function. wbc_account_cgroup_owner() is > converting the page back to a folio to call mem_cgroup_css_from_folio(). > > Convert

Re: [f2fs-dev] [PATCH] f2fs: fix to don't set SB_RDONLY in f2fs_handle_critical_error()

2024-09-10 Thread Christian Brauner via Linux-f2fs-devel
rk_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 > > As Christian Brauner pointed out [1]: the root cause is f2fs sets > SB_RDONLY flag in internal function, rather than setting the flag > covered w/ sb->s_umount semaphore via remount procedure, then below > race condition cause

Re: [f2fs-dev] [PATCH v4 0/5] Write-placement hints and FDP

2024-09-03 Thread Christian Brauner via Linux-f2fs-devel
On Tue, Sep 03, 2024 at 07:58:46PM GMT, Kanchan Joshi wrote: > Hi Amir, > > > On 8/26/2024 10:36 PM, Kanchan Joshi wrote: > > Current write-hint infrastructure supports 6 temperature-based data life > > hints. > > The series extends the infrastructure with a new temperature-agnostic > > placement

Re: [f2fs-dev] [linux-next:master] [fs] cdc4ad36a8: kernel_BUG_at_include/linux/page-flags.h

2024-08-07 Thread Christian Brauner
On Wed, Aug 07, 2024 at 04:46:15AM GMT, Matthew Wilcox wrote: > On Tue, Aug 06, 2024 at 10:26:17PM +0800, kernel test robot wrote: > > kernel test robot noticed "kernel_BUG_at_include/linux/page-flags.h" on: > > > > commit: cdc4ad36a871b7ac43fcc6b2891058d332ce60ce ("fs: Convert > > aops->write_be

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING in rcu_sync_dtor

2024-07-29 Thread Christian Brauner
On Fri, Jul 26, 2024 at 08:23:02AM GMT, syzbot wrote: > syzbot has bisected this issue to: > > commit b62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5 > Author: Chao Yu > Date: Sun Apr 23 15:49:15 2023 + > > f2fs: support errors=remount-ro|continue|panic mountoption > > bisection log: https:

Re: [f2fs-dev] [PATCH 1/3] fs: Export in_group_or_capable()

2024-06-20 Thread Christian Brauner
On Thu, 20 Jun 2024 11:23:33 +0800, Youling Tang wrote: > Export in_group_or_capable() as a VFS helper function. > > This makes sense to me. --- Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstandi

Re: [f2fs-dev] [PATCH v18 0/7] Case insensitive cleanup for ext4/f2fs

2024-06-07 Thread Christian Brauner
> Christian, can you please take a look? Eric has also been involved in Thanks! Looks good to me. I've picked it up for testing in -next. ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listi

Re: [f2fs-dev] [PATCH v18 0/7] Case insensitive cleanup for ext4/f2fs

2024-06-07 Thread Christian Brauner
On Thu, 06 Jun 2024 10:33:46 +0300, Eugen Hristev wrote: > I am trying to respin the series here : > https://www.spinics.net/lists/linux-ext4/msg85081.html > > I resent some of the v9 patches and got some reviews from Gabriel, > I did changes as requested and here is v18. > > Changes in v18: > -

Re: [f2fs-dev] [PATCH v5 04/12] fscrypt: Drop d_revalidate for valid dentries during lookup

2024-02-09 Thread Christian Brauner
On Fri, Feb 02, 2024 at 11:50:07AM -0300, Gabriel Krisman Bertazi wrote: > Eric Biggers writes: > > > On Wed, Jan 31, 2024 at 03:35:40PM -0300, Gabriel Krisman Bertazi wrote: > >> Eric Biggers writes: > >> > >> > On Mon, Jan 29, 2024 at 05:43:22PM -0300, Gabriel Krisman Bertazi wrote: > >> >> U

Re: [f2fs-dev] [syzbot] [reiserfs?] possible deadlock in super_lock

2023-12-28 Thread Christian Brauner
On Sun, Dec 24, 2023 at 08:40:05AM -0800, syzbot wrote: > syzbot suspects this issue was fixed by commit: > > commit fd1464105cb37a3b50a72c1d2902e97a71950af8 > Author: Jan Kara > Date: Wed Oct 18 15:29:24 2023 + > > fs: Avoid grabbing sb->s_umount under bdev->bd_holder_lock > > bisect

Re: [f2fs-dev] fun with d_invalidate() vs. d_splice_alias() was Re: [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs

2023-11-29 Thread Christian Brauner
> 2) lookup fails. It's already possible; e.g. if server has I think that's the sanest option. The other options seem even less intuitive. > not fatal. The trouble is, that won't be a transient failure - > not until somebody tries to look the old location up. Eh, nfs semantics are quite specia

Re: [f2fs-dev] fun with d_invalidate() vs. d_splice_alias() was Re: [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs

2023-11-27 Thread Christian Brauner
On Mon, Nov 27, 2023 at 06:38:42AM +, Al Viro wrote: > On Sun, Nov 26, 2023 at 06:41:41PM +, Al Viro wrote: > > > d_invalidate() situation is more subtle - we need to sort out its interplay > > with d_splice_alias(). > > > > More concise variant of the scenario in question: > > * we have

Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs

2023-11-20 Thread Christian Brauner
On Sun, Nov 19, 2023 at 06:11:39PM -0500, Gabriel Krisman Bertazi wrote: > Christian Brauner writes: > > > On Wed, 16 Aug 2023 01:07:54 -0400, Gabriel Krisman Bertazi wrote: > >> This is v6 of the negative dentry on case-insensitive directories. > >> Thanks E

Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs

2023-10-25 Thread Christian Brauner
On Wed, 16 Aug 2023 01:07:54 -0400, Gabriel Krisman Bertazi wrote: > This is v6 of the negative dentry on case-insensitive directories. > Thanks Eric for the review of the last iteration. This version > drops the patch to expose the helper to check casefolding directories, > since it is not necess

Re: [f2fs-dev] [PATCH v2 00/89] fs: new accessor methods for inode atime and mtime

2023-10-09 Thread Christian Brauner
On Wed, Oct 04, 2023 at 02:52:21PM -0400, Jeff Layton wrote: > v2: > - bugfix in mtime handling > - incorporate _sec and _nsec accessor functions (Chuck Lever) > - move i_generation to plug hole after changing timestamps (Amir Goldstein) > > While working on the multigrain timestamp changes, Linus

Re: [f2fs-dev] [PATCH 86/87] fs: switch timespec64 fields in inode to discrete integers

2023-09-29 Thread Christian Brauner
> It is a lot of churn though. I think that i_{a,c,m}time shouldn't be accessed directly by filesystems same as no filesystem should really access i_{g,u}id which we also provide i_{g,u}id_{read,write}() accessors for. The mode is another example where really most often should use helpers because

Re: [f2fs-dev] [PATCH 87/87] fs: move i_blocks up a few places in struct inode

2023-09-29 Thread Christian Brauner
On Thu, Sep 28, 2023 at 10:41:34AM -0700, Linus Torvalds wrote: > On Thu, 28 Sept 2023 at 04:06, Jeff Layton wrote: > > > > Move i_blocks up above the i_lock, which moves the new 4 byte hole to > > just after the timestamps, without changing the size of the structure. > > I'm sure others have men

Re: [f2fs-dev] [PATCH v4 0/29] block: Make blkdev_get_by_*() return handle

2023-09-27 Thread Christian Brauner
On Wed, 27 Sep 2023 11:34:07 +0200, Jan Kara wrote: > Create struct bdev_handle that contains all parameters that need to be > passed to blkdev_put() and provide bdev_open_* functions that return > this structure instead of plain bdev pointer. This will eventually allow > us to pass one more argume

Re: [f2fs-dev] [PATCH v7 12/13] ext4: switch to multigrain timestamps

2023-09-20 Thread Christian Brauner
> You could put it behind an EXPERIMENTAL Kconfig option so that the > code stays in and can be used by the brave or foolish while it is > still being refined. Given that the discussion has now fully gone back to the drawing board and this is a regression the honest thing to do is to revert the fi

Re: [f2fs-dev] [PATCH v7 12/13] ext4: switch to multigrain timestamps

2023-09-20 Thread Christian Brauner
> I don't, actually. I'm just mentioning that it's possible if we find the > mount option to be unpalatable. Ok. > > > @Jan, what do you think? > > > > > My plan was to take a stab at doing this for a later kernel release. > > > > Ok. > > If it works out, then we may be able to eventually rem

Re: [f2fs-dev] [PATCH v7 12/13] ext4: switch to multigrain timestamps

2023-09-20 Thread Christian Brauner
> I wasn't proposing to do that work for v6.6. For that, we absolutely > either need the mount option or to just revert the mgtime conversions. This sounds like you want me to do a full-on revert of your series but why? The conversion and changes support an actual use-case and are fine. It's a mat

Re: [f2fs-dev] [PATCH v7 12/13] ext4: switch to multigrain timestamps

2023-09-20 Thread Christian Brauner
> > > While we initially thought we can do this unconditionally it turns out > > > that this might break existing workloads that rely on timestamps in very > > > specific ways and we always knew this was a possibility. Move > > > multi-grain timestamps behind a vfs mount option. > > > > Surely thi

Re: [f2fs-dev] [PATCH v7 12/13] ext4: switch to multigrain timestamps

2023-09-20 Thread Christian Brauner
On Wed, Sep 20, 2023 at 12:17:31PM +0200, Jan Kara wrote: > On Wed 20-09-23 10:41:30, Christian Brauner wrote: > > > > f1 was last written to *after* f2 was last written to. If the timestamp > > > > of f1 > > > > is then lower than the timestamp of f2, times

Re: [f2fs-dev] [PATCH v7 12/13] ext4: switch to multigrain timestamps

2023-09-20 Thread Christian Brauner
It might produce some inode write amplification. Files that Less than ideal imho. If this risks breaking existing workloads by enabling it unconditionally and there isn't a clear way to detect and handle these situations without risk of regression then we should move this behind a mount optio

Re: [f2fs-dev] [PATCH 03/12] filemap: update ki_pos in generic_perform_write

2023-09-13 Thread Christian Brauner
On Wed, Sep 13, 2023 at 01:00:10PM +0200, Christoph Hellwig wrote: > > direct_write_fallback(): on error revert the ->ki_pos update from buffered > > write > > Al, Christian: can you send this fix on top Linus? Wasn't aware of this, sorry. I've picked it up and placed it with another set of smal

Re: [f2fs-dev] [PATCH 07/11] vfs: add nowait parameter for file_accessed()

2023-09-04 Thread Christian Brauner
On Sun, Aug 27, 2023 at 09:28:31PM +0800, Hao Xu wrote: > From: Hao Xu > > Add a boolean parameter for file_accessed() to support nowait semantics. > Currently it is true only with io_uring as its initial caller. > > Signed-off-by: Hao Xu > --- > arch/s390/hypfs/inode.c | 2 +- > block/fops.c

Re: [f2fs-dev] [PATCH v6 00/11] io_uring getdents

2023-09-04 Thread Christian Brauner
On Sun, Aug 27, 2023 at 09:28:24PM +0800, Hao Xu wrote: For the future it would be helpful to hold of on sending larger series that like this until a stable tag is out. Right now this series is generating a bunch of merge conflicts because of all the changes to relevant codepaths that got merged.

Re: [f2fs-dev] [PATCH 10/11] vfs: trylock inode->i_rwsem in iterate_dir() to support nowait

2023-09-04 Thread Christian Brauner
On Sun, Aug 27, 2023 at 09:28:34PM +0800, Hao Xu wrote: > From: Hao Xu > > Trylock inode->i_rwsem in iterate_dir() to support nowait semantics and > error out -EAGAIN when there is contention. > > Signed-off-by: Hao Xu > --- Unreviewable until you rebased on -rc1 as far as I'm concerned becaus

Re: [f2fs-dev] [PATCH v3 0/29] block: Make blkdev_get_by_*() return handle

2023-08-29 Thread Christian Brauner
> replacement) I think we can go ahead with the series as is. As you said > there will be some conflicts in btrfs and I've learned about f2fs conflicts > as well so I can rebase & repost the series on top of rc1 to make life > easier for you. That is be much appreciated. Thank you! _

Re: [f2fs-dev] [PATCH v2 0/29] block: Make blkdev_get_by_*() return handle

2023-08-28 Thread Christian Brauner
> So besides my last fput() worry about I think this could work and would be > probably a bit nicer than what I have. But before going and redoing the whole > series let me gather some more feedback so that we don't go back and forth. > Christoph, Christian, Jens, any opinion? I'll be a bit under

Re: [f2fs-dev] [PATCH v3 0/29] block: Make blkdev_get_by_*() return handle

2023-08-25 Thread Christian Brauner
On Wed, Aug 23, 2023 at 12:48:11PM +0200, Jan Kara wrote: > Hello, > > this is a v3 of the patch series which implements the idea of > blkdev_get_by_*() > calls returning bdev_handle which is then passed to blkdev_put() [1]. This > makes the get and put calls for bdevs more obviously matching and

Re: [f2fs-dev] [PATCH 23/29] f2fs: Convert to bdev_open_by_dev/path()

2023-08-25 Thread Christian Brauner
t; --- Looks good to me, Reviewed-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs

2023-08-22 Thread Christian Brauner
> Targeting 6.7 is fine by me. will you pick it up through the vfs tree? I > prefer it goes through there since it mostly touches vfs. Yes, I think that's what will end up happening. ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.

Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs

2023-08-21 Thread Christian Brauner
On Thu, Aug 17, 2023 at 10:06:58AM -0700, Eric Biggers wrote: > On Wed, Aug 16, 2023 at 01:07:54AM -0400, Gabriel Krisman Bertazi wrote: > > Hi, > > > > This is v6 of the negative dentry on case-insensitive directories. > > Thanks Eric for the review of the last iteration. This version > > drops

Re: [f2fs-dev] [PATCH v7 08/13] fs: drop the timespec64 argument from update_time

2023-08-09 Thread Christian Brauner
On Mon, Aug 07, 2023 at 03:38:39PM -0400, Jeff Layton wrote: > Now that all of the update_time operations are prepared for it, we can > drop the timespec64 argument from the update_time operation. Do that and > remove it from some associated functions like inode_update_time and > inode_needs_update

Re: [f2fs-dev] [PATCH v7 05/13] fat: make fat_update_time get its own timestamp

2023-08-09 Thread Christian Brauner
On Tue, Aug 08, 2023 at 11:32:26AM +0200, Jan Kara wrote: > On Mon 07-08-23 15:38:36, Jeff Layton wrote: > > In later patches, we're going to drop the "now" parameter from the > > update_time operation. Fix fat_update_time to fetch its own timestamp. > > It turns out that this is easily done by jus

Re: [f2fs-dev] [PATCH v7 00/13] fs: implement multigrain timestamps

2023-08-09 Thread Christian Brauner
On Mon, 07 Aug 2023 15:38:31 -0400, Jeff Layton wrote: > The VFS always uses coarse-grained timestamps when updating the > ctime and mtime after a change. This has the benefit of allowing > filesystems to optimize away a lot metadata updates, down to around 1 > per jiffy, even when a file is under

Re: [f2fs-dev] [PATCH v7 06/13] ubifs: have ubifs_update_time use inode_update_timestamps

2023-08-09 Thread Christian Brauner
On Tue, Aug 08, 2023 at 11:37:01AM +0200, Jan Kara wrote: > On Mon 07-08-23 15:38:37, Jeff Layton wrote: > > In later patches, we're going to drop the "now" parameter from the > > update_time operation. Prepare ubifs for this, by having it use the new > > inode_update_timestamps helper. > > > > Si

Re: [f2fs-dev] [PATCH v7 07/13] xfs: have xfs_vn_update_time gets its own timestamp

2023-08-09 Thread Christian Brauner
On Tue, Aug 08, 2023 at 11:39:03AM +0200, Jan Kara wrote: > On Mon 07-08-23 15:38:38, Jeff Layton wrote: > > In later patches we're going to drop the "now" parameter from the > > update_time operation. Prepare XFS for this by reworking how it fetches > > timestamps and sets them in the inode. Ensur

Re: [f2fs-dev] [PATCH 11/12] xfs: drop s_umount over opening the log and RT devices

2023-08-05 Thread Christian Brauner
On Sat, Aug 05, 2023 at 09:19:04AM -0700, Darrick J. Wong wrote: > On Sat, Aug 05, 2023 at 10:32:39AM +0200, Christoph Hellwig wrote: > > On Wed, Aug 02, 2023 at 09:32:19AM -0700, Darrick J. Wong wrote: > > > > + /* see get_tree_bdev why this is needed and safe */ > > > > > > Which part of g

Re: [f2fs-dev] [PATCH 11/12] xfs: drop s_umount over opening the log and RT devices

2023-08-05 Thread Christian Brauner
On Sat, Aug 05, 2023 at 10:32:39AM +0200, Christoph Hellwig wrote: > On Wed, Aug 02, 2023 at 09:32:19AM -0700, Darrick J. Wong wrote: > > > + /* see get_tree_bdev why this is needed and safe */ > > > > Which part of get_tree_bdev? Is it this? > > > > /* > > * s_umount ne

Re: [f2fs-dev] more blkdev_get and holder work

2023-08-04 Thread Christian Brauner
On Wed, 02 Aug 2023 17:41:19 +0200, Christoph Hellwig wrote: > this series sits on top of the vfs.super branch in the VFS tree and does a > few closely related things: > > 1) it also converts nilfs2 and btrfs to the new scheme where the file system > only opens the block devices after we kn

Re: [f2fs-dev] [PATCH 09/12] ext4: drop s_umount over opening the log device

2023-08-03 Thread Christian Brauner
gt; It might be preferable to just drop s_umount over ->fill_super entirely, > but that will require a fairly massive audit first, so we'll do the easy > version here first. > > Signed-off-by: Christoph Hellwig > --- Looks good

Re: [f2fs-dev] [PATCH 08/12] fs: export fs_holder_ops

2023-08-03 Thread Christian Brauner
On Wed, Aug 02, 2023 at 05:41:27PM +0200, Christoph Hellwig wrote: > Export fs_holder_ops so that file systems that open additional block > devices can use it as well. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Reviewed-by: Ch

Re: [f2fs-dev] [PATCH 07/12] fs: stop using get_super in fs_mark_dead

2023-08-03 Thread Christian Brauner
istoph Hellwig > --- Looks good to me, Reviewed-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 06/12] fs: use the super_block as holder when mounting file systems

2023-08-03 Thread Christian Brauner
gt; > Signed-off-by: Christoph Hellwig > --- Looks good to me, Reviewed-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 05/12] ext4: make the IS_EXT2_SB/IS_EXT3_SB checks more robust

2023-08-03 Thread Christian Brauner
--- Looks good to me, Reviewed-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 01/12] fs: export setup_bdev_super

2023-08-03 Thread Christian Brauner
On Wed, Aug 02, 2023 at 05:41:20PM +0200, Christoph Hellwig wrote: > We'll want to use setup_bdev_super instead of duplicating it in nilfs2. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Reviewed-by: Christian Brauner _

Re: [f2fs-dev] [PATCH v6 2/7] fs: add infrastructure for multigrain timestamps

2023-08-03 Thread Christian Brauner
On Wed, Aug 02, 2023 at 04:54:09PM -0400, Jeff Layton wrote: > On Wed, 2023-08-02 at 21:35 +0200, Jan Kara wrote: > > On Tue 25-07-23 10:58:15, Jeff Layton wrote: > > > The VFS always uses coarse-grained timestamps when updating the ctime > > > and mtime after a change. This has the benefit of allo

Re: [f2fs-dev] [PATCH v6 5/7] xfs: switch to multigrain timestamps

2023-08-03 Thread Christian Brauner
On Wed, Aug 02, 2023 at 02:21:49PM -0400, Jeff Layton wrote: > On Wed, 2023-08-02 at 10:48 -0700, Darrick J. Wong wrote: > > On Tue, Jul 25, 2023 at 10:58:18AM -0400, Jeff Layton wrote: > > > Enable multigrain timestamps, which should ensure that there is an > > > apparent change to the timestamp w

Re: [f2fs-dev] [PATCH v4 1/7] fs: Expose name under lookup to d_revalidate hook

2023-07-28 Thread Christian Brauner
On Thu, Jul 27, 2023 at 01:28:37PM -0400, Gabriel Krisman Bertazi wrote: > From: Gabriel Krisman Bertazi > > Negative dentries support on case-insensitive ext4/f2fs will require > access to the name under lookup to ensure it matches the dentry. This > adds an optional new flavor of cached dentry

Re: [f2fs-dev] [PATCH v4 3/7] libfs: Validate negative dentries in case-insensitive directories

2023-07-28 Thread Christian Brauner
On Thu, Jul 27, 2023 at 01:28:39PM -0400, Gabriel Krisman Bertazi wrote: > From: Gabriel Krisman Bertazi > > Introduce a dentry revalidation helper to be used by case-insensitive > filesystems to check if it is safe to reuse a negative dentry. > > A negative dentry is safe to be reused on a case

Re: [f2fs-dev] [PATCH v4 0/7] Support negative dentries on case-insensitive ext4 and f2fs

2023-07-28 Thread Christian Brauner
On Thu, Jul 27, 2023 at 01:28:36PM -0400, Gabriel Krisman Bertazi wrote: > Hi, > > This is the v4 of the negative dentry support on case-insensitive > directories. It doesn't have any functional changes from v1. It applies > Eric's comments to bring the flags check closet together, improve the I

Re: [f2fs-dev] (subset) [PATCH v6 0/7] fs: implement multigrain timestamps

2023-07-28 Thread Christian Brauner
On Tue, 25 Jul 2023 10:58:13 -0400, Jeff Layton wrote: > The VFS always uses coarse-grained timestamps when updating the > ctime and mtime after a change. This has the benefit of allowing > filesystems to optimize away a lot metadata updates, down to around 1 > per jiffy, even when a file is under

Re: [f2fs-dev] [PATCH v4 0/7] Support negative dentries on case-insensitive ext4 and f2fs

2023-07-28 Thread Christian Brauner
> since it has vfs, ext4, and f2fs changes (and the bulk of the changes > are in the vfs), perhaps it should go through the vfs tree? I've just waited for Eric to finish his review. I'll take a look later and will get it into -next for long soaking. __

Re: [f2fs-dev] [PATCH v2 00/89] fs: new accessors for inode->i_ctime

2023-07-10 Thread Christian Brauner
On Fri, Jul 07, 2023 at 08:42:31AM -0400, Jeff Layton wrote: > On Wed, 2023-07-05 at 14:58 -0400, Jeff Layton wrote: > > v2: > > - prepend patches to add missing ctime updates > > - add simple_rename_timestamp helper function > > - rename ctime accessor functions as inode_get_ctime/inode_set_ctime_

Re: [f2fs-dev] [PATCH v2 00/92] fs: new accessors for inode->i_ctime

2023-07-10 Thread Christian Brauner
On Wed, 05 Jul 2023 14:58:09 -0400, Jeff Layton wrote: > v2: > - prepend patches to add missing ctime updates > - add simple_rename_timestamp helper function > - rename ctime accessor functions as inode_get_ctime/inode_set_ctime_* > - drop individual inode_ctime_set_{sec,nsec} helpers > > I've bee

Re: [f2fs-dev] [PATCH 00/79] fs: new accessors for inode->i_ctime

2023-06-23 Thread Christian Brauner
On Wed, Jun 21, 2023 at 03:52:27PM -0400, Jeff Layton wrote: > On Wed, 2023-06-21 at 15:21 -0400, Steven Rostedt wrote: > > On Wed, 21 Jun 2023 10:45:05 -0400 > > Jeff Layton wrote: > > > > > Most of this conversion was done via coccinelle, with a few of the more > > > non-standard accesses done

Re: [f2fs-dev] [PATCH 27/30] block: replace fmode_t with a block-specific type for block open flags

2023-06-08 Thread Christian Brauner
off_t lend); > +blk_mode_t file_to_blk_mode(struct file *file); > +int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode, > + loff_t lstart, loff_t lend); > long blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg); > long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg); > > diff --git a/block/fops.c b/block/fops.c > index 9f26e25bafa172..086612103b9dd9 100644 > --- a/block/fops.c > +++ b/block/fops.c > @@ -470,6 +470,30 @@ static int blkdev_fsync(struct file *filp, loff_t start, > loff_t end, > return error; > } > > +blk_mode_t file_to_blk_mode(struct file *file) > +{ > + blk_mode_t mode = 0; > + > + if (file->f_mode & FMODE_READ) > + mode |= BLK_OPEN_READ; > + if (file->f_mode & FMODE_WRITE) > + mode |= BLK_OPEN_WRITE; > + if (file->f_mode & FMODE_EXCL) > + mode |= BLK_OPEN_EXCL; > + if (file->f_flags & O_NDELAY) > + mode |= BLK_OPEN_NDELAY; > + > + /* > + * If all bits in O_ACCMODE set (aka O_RDWR | O_WRONLY), the floppy > + * driver has historically allowed ioctls as if the file was opened for > + * writing, but does not allow and actual reads or writes. > + */ > + if ((file->f_flags & O_ACCMODE) == (O_RDWR | O_WRONLY)) > + mode |= BLK_OPEN_WRITE_IOCTL; Thanks for that! Reviewed-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 28/31] block: replace fmode_t with a block-specific type for block open flags

2023-06-07 Thread Christian Brauner
On Wed, Jun 07, 2023 at 02:16:58PM +0200, Christoph Hellwig wrote: > On Wed, Jun 07, 2023 at 11:21:14AM +0200, Christian Brauner wrote: > > On Tue, Jun 06, 2023 at 09:39:47AM +0200, Christoph Hellwig wrote: > > > The only overlap between the block open flags mapped into the fmode

Re: [f2fs-dev] [PATCH 28/31] block: replace fmode_t with a block-specific type for block open flags

2023-06-07 Thread Christian Brauner
On Wed, Jun 07, 2023 at 11:21:24AM +0200, Christian Brauner wrote: > On Tue, Jun 06, 2023 at 09:39:47AM +0200, Christoph Hellwig wrote: > > The only overlap between the block open flags mapped into the fmode_t and > > other uses of fmode_t are FMODE_READ and FMODE_WRITE. Define

Re: [f2fs-dev] decouple block open flags from fmode_t

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 10:40:42AM +0200, Christoph Hellwig wrote: > On Tue, Jun 06, 2023 at 10:27:14AM +0200, Christian Brauner wrote: > > On Tue, Jun 06, 2023 at 09:39:19AM +0200, Christoph Hellwig wrote: > > > Hi all, > > > > > > this series adds a new blk

Re: [f2fs-dev] [PATCH 31/31] fs: remove the now unused FMODE_* flags

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:50AM +0200, Christoph Hellwig wrote: > FMODE_NDELAY, FMODE_EXCL and FMODE_WRITE_IOCTL were only used for > block internal purposed and are now entirely unused, so remove them. > > Signed-off-by: Christoph Hellwig > --- Love it, Reviewed-by: Ch

Re: [f2fs-dev] [PATCH 30/31] block: store the holder in file->private_data

2023-06-07 Thread Christian Brauner
> --- Feels a bit odd to store the object itself but anyway, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 29/31] block: always use I_BDEV on file->f_mapping->host to find the bdev

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:48AM +0200, Christoph Hellwig wrote: > Always use I_BDEV(file->f_mapping->host) to find the bdev for a file to > free up file->private_data for other uses. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Ack

Re: [f2fs-dev] [PATCH 28/31] block: replace fmode_t with a block-specific type for block open flags

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:47AM +0200, Christoph Hellwig wrote: > The only overlap between the block open flags mapped into the fmode_t and > other uses of fmode_t are FMODE_READ and FMODE_WRITE. Define a new and FMODE_EXCL afaict > blk_mode_t instead for use in blkdev_get_by_*, ->open and ->

Re: [f2fs-dev] [PATCH 27/31] block: remove unused fmode_t arguments from ioctl handlers

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:46AM +0200, Christoph Hellwig wrote: > A few ioctl handlers have fmode_t arguments that are entirely unused, > remove them. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Ch

Re: [f2fs-dev] [PATCH 26/31] block: move a few internal definitions out of blkdev.h

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:45AM +0200, Christoph Hellwig wrote: > All these helpers are only used in core block code, so move them out of > the public header. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Ch

Re: [f2fs-dev] [PATCH 25/31] ubd: remove commented out code in ubd_open

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:44AM +0200, Christoph Hellwig wrote: > This code has been dead forever, make sure it doesn't show up in code > searches. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-b

Re: [f2fs-dev] [PATCH 24/31] rnbd-srv: replace sess->open_flags with a "bool readonly"

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:43AM +0200, Christoph Hellwig wrote: > Stop passing the fmode_t around and just use a simple bool to track if > an export is read-only. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Ch

Re: [f2fs-dev] [PATCH 23/31] mtd: block: use a simple bool to track open for write

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:42AM +0200, Christoph Hellwig wrote: > Instead of propagating the fmode_t, just use a bool to track if a mtd > block device was opened for writing. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Ch

Re: [f2fs-dev] [PATCH 22/31] nvme: replace the fmode_t argument to the nvme ioctl handlers with a simple bool

2023-06-07 Thread Christian Brauner
good to me, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 21/31] scsi: replace the fmode_t argument to ->sg_io_fn with a simple bool

2023-06-07 Thread Christian Brauner
good to me, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 20/31] scsi: replace the fmode_t argument to scsi_ioctl with a simple bool

2023-06-07 Thread Christian Brauner
good to me, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 19/31] scsi: replace the fmode_t argument to scsi_cmd_allowed with a simple bool

2023-06-07 Thread Christian Brauner
good to me, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 18/31] fs: remove sb->s_mode

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:37AM +0200, Christoph Hellwig wrote: > There is no real need to store the open mode in the super_block now. > It is only used by f2fs, which can easily recalculate it. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Ch

Re: [f2fs-dev] [PATCH 17/31] block: add a sb_open_mode helper

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:36AM +0200, Christoph Hellwig wrote: > Add a helper to return the open flags for blkdev_get_by* for passed in > super block flags instead of open coding the logic in many places. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acke

Re: [f2fs-dev] [PATCH 16/31] block: use the holder as indication for exclusive opens

2023-06-07 Thread Christian Brauner
> > For blkdev_put this requires adding the holder argument, which provides > better debug checking that only the holder actually releases the hold, > but at the same time allows removing the now superfluous mode argument. > > Signed-off-by: Christoph Hellwig > --- Looks g

Re: [f2fs-dev] [PATCH 15/31] btrfs: don't pass a holder for non-exclusive blkdev_get_by_path

2023-06-07 Thread Christian Brauner
v_get_by_path calls. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH 14/31] rnbd-srv: don't pass a holder for non-exclusive blkdev_get_by_path

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:33AM +0200, Christoph Hellwig wrote: > Passing a holder to blkdev_get_by_path when FMODE_EXCL isn't set doesn't > make sense, so pass NULL instead. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Ac

Re: [f2fs-dev] [PATCH 11/31] block: rename blkdev_close to blkdev_release

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:30AM +0200, Christoph Hellwig wrote: > Make the function name match the method name. > > Signed-off-by: Christoph Hellwig > --- Looks good to me, Acked-by: Christian Brauner ___ Linux-f2fs-devel mailing lis

Re: [f2fs-dev] [PATCH 10/31] block: remove the unused mode argument to ->release

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:29AM +0200, Christoph Hellwig wrote: > The mode argument to the ->release block_device_operation is never used, > so remove it. > > Signed-off-by: Christoph Hellwig > --- Good cleanup. Looks good to me, Acked-by:

  1   2   >