summaryrefslogtreecommitdiff
path: root/fs/ext4/fast_commit.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-12-10 04:10:42 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2025-01-28 03:24:43 +0300
commit7e3270165a8704ffb3948ef78f139aefc033135a (patch)
tree8b362fdcd6714b2881d6968b5aa738c651e90d22 /fs/ext4/fast_commit.h
parent95a4ccbbe596b45264af5e3a019cb920c05ccffd (diff)
downloadlinux-7e3270165a8704ffb3948ef78f139aefc033135a.tar.xz
ext4 fast_commit: make use of name_snapshot primitives
... rather than open-coding them. As a bonus, that avoids the pointless work with extra allocations, etc. for long names. Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4/fast_commit.h')
-rw-r--r--fs/ext4/fast_commit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/fast_commit.h b/fs/ext4/fast_commit.h
index 2fadb2c4780c..3bd534e4dbbf 100644
--- a/fs/ext4/fast_commit.h
+++ b/fs/ext4/fast_commit.h
@@ -109,8 +109,7 @@ struct ext4_fc_dentry_update {
int fcd_op; /* Type of update create / unlink / link */
int fcd_parent; /* Parent inode number */
int fcd_ino; /* Inode number */
- struct qstr fcd_name; /* Dirent name */
- unsigned char fcd_iname[DNAME_INLINE_LEN]; /* Dirent name string */
+ struct name_snapshot fcd_name; /* Dirent name */
struct list_head fcd_list;
struct list_head fcd_dilist;
};