]> Git Repo - linux.git/commit
ext4: convert symlink external data block mapping to bdev
authorZhang Yi <[email protected]>
Sun, 24 Apr 2022 14:09:36 +0000 (22:09 +0800)
committerTheodore Ts'o <[email protected]>
Tue, 17 May 2022 18:17:40 +0000 (14:17 -0400)
commit6493792d3299b3e33f887ef8a150099d271faf9c
treeae01477e2f0e88d4d21014792372d063ee88f29e
parent9558cf14e8d2149a8df402b74041a99835801932
ext4: convert symlink external data block mapping to bdev

Symlink's external data block is one kind of metadata block, and now
that almost all ext4 metadata block's page cache (e.g. directory blocks,
quota blocks...) belongs to bdev backing inode except the symlink. It
is essentially worked in data=journal mode like other regular file's
data block because probably in order to make it simple for generic VFS
code handling symlinks or some other historical reasons, but the logic
of creating external data block in ext4_symlink() is complicated. and it
also make things confused if user do not want to let the filesystem
worked in data=journal mode. This patch convert the final exceptional
case and make things clean, move the mapping of the symlink's external
data block to bdev like any other metadata block does.

Signed-off-by: Zhang Yi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
fs/ext4/inode.c
fs/ext4/namei.c
fs/ext4/symlink.c
This page took 0.053919 seconds and 4 git commands to generate.