lkml.org 
[lkml]   [2023]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ext4: Put inode_operations in inode.c
On Fri, Apr 28, 2023 at 09:34:20PM +0800, Wu Jianyue wrote:
> inode_operations is more suitable to put in inode.c,
> instead of file.c, so moved to inode.c.

The inode operations structure for directories is in fs/ext4/namei.c;
the inode operations for symlinks is in fs/ext4/symlink.c. Exactly
where the structure definition is somewhat arbitrary; should it be
where the majority of the functions are defined? Should it be
associated with the file where operations for that inode type are
located? Should it be in the file where the structure is used (which
is actually in two files; fs/ext4/namei.c and fs/ext4/inode.c)?

Moving it is just churn and makes things less consistent, so I don't
think it's worth it to take this patch, sorry.

- Ted

\
 
 \ /
  Last update: 2023-04-28 20:00    [W:0.031 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site