Skip to content

nilfs2: eliminate the call to inode_attach_wb()

Ryusuke Konishi linux-fsdevel linux-nilfs lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] nilfs2-do-not-call-inode_attach_wb-directly.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2nilfs2: prepare backing device folios for writing after adding checksumsfs/nilfs2/segment.c+52 -330 repliesApplied
2/2nilfs2: do not call inode_attach_wb() directlyfs/nilfs2/segment.c+2 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -mm 0/2] nilfs2: eliminate the call to inode_attach_wb()

Hi Andrew, please queue this series for the next cycle.

This series eliminates the inode_attach_wb() call from nilfs2, which was introduced as a workaround for a kernel bug but is suspected of layer violation (in fact, it is undesirable since it exposes a reference to the backing device).

Removal of the inode_attach_wb() call is done by simply using mark_buffer_dirty() on the backing device's buffers. To use it safely, this series will prepare it in patch 1/2, and perform the replacement itself in patch 2/2.

Thanks,
Ryusuke Konishi

Ryusuke Konishi (2):
nilfs2: prepare backing device folios for writing after adding
checksums
nilfs2: do not call inode_attach_wb() directly

 fs/nilfs2/segment.c | 89 +++++++++++++++++++++++++++------------------
 1 file changed, 54 insertions(+), 35 deletions(-)
Signature · 1 line
2.34.1