diff options
| author | Jori Koolstra <jkoolstra@xs4all.nl> | 2026-06-30 12:53:32 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-07-01 12:48:37 +0200 |
| commit | c8ba66ee6028e7f45b9b2161276e1f76bd304c93 (patch) | |
| tree | 639370d19aa2bd24ea0d901dc348deec7d77663c | |
| parent | 015a1f57507932b6bbc0a1453e4962fda441f9ff (diff) | |
| download | linux-stable-c8ba66ee6028e7f45b9b2161276e1f76bd304c93.tar.gz linux-stable-c8ba66ee6028e7f45b9b2161276e1f76bd304c93.zip | |
affs: drop redundant S_IFDIR from mkdir
vfs_mkdir() now sets the S_IFDIR type bit in the mode it passes to
->mkdir(), so OR-ing S_IFDIR into the mode again in affs_mkdir() is
redundant. Drop it.
Assisted-by: LLM
Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl>
Link: https://patch.msgid.link/20260630105400.68459-4-jkoolstra@xs4all.nl
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
| -rw-r--r-- | fs/affs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/namei.c b/fs/affs/namei.c index c3c6532da4b0..1a6b2492ab03 100644 --- a/fs/affs/namei.c +++ b/fs/affs/namei.c @@ -287,7 +287,7 @@ affs_mkdir(struct mnt_idmap *idmap, struct inode *dir, if (!inode) return ERR_PTR(-ENOSPC); - inode->i_mode = S_IFDIR | mode; + inode->i_mode = mode; affs_mode_to_prot(inode); inode->i_op = &affs_dir_inode_operations; |
