aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2024-11-13 14:17:51 +0000
committerChristian Brauner <[email protected]>2024-11-14 09:45:53 +0000
commit9fed2c0f2f0771b990d068ef0a2b32e770ae6d48 (patch)
treef7efaa0568afb1238d72f1e6f024cc30c344cc3d /rust/helpers/helpers.c
parentMerge patch series "timekeeping/fs: multigrain timestamp redux" (diff)
downloadkernel-9fed2c0f2f0771b990d068ef0a2b32e770ae6d48.tar.gz
kernel-9fed2c0f2f0771b990d068ef0a2b32e770ae6d48.zip
fs: reduce pointer chasing in is_mgtime() test
The is_mgtime test checks whether the FS_MGTIME flag is set in the fstype. To get there from the inode though, we have to dereference 3 pointers. Add a new IOP_MGTIME flag, and have inode_init_always() set that flag when the fstype flag is set. Then, make is_mgtime test for IOP_MGTIME instead. Signed-off-by: Jeff Layton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions