aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorTheodore Ts'o <[email protected]>2019-11-28 22:26:51 -0500
committerTheodore Ts'o <[email protected]>2020-01-17 16:24:25 -0500
commitd4c5e960bf202d99ec9a6922ad387eafb798b848 (patch)
treeee055127be4ebb1c9eccf1cee15185327255d6d2 /drivers/usb/cdns3/cdns3-imx.c
parent8cd115bdda17751ee2adab614a80df72228b3809 (diff)
ext4: avoid fetching btime in ext4_getattr() unless requested
Linus observed that an allmodconfig build which does a lot of stat(2) calls that ext4_getattr() was a noticeable (1%) amount of CPU time, due to the cache line for i_extra_isize getting pulled in. Since the normal stat system call doesn't return btime, it's a complete waste. So only calculate btime when it is explicitly requested. [ Fixed to check against request_mask instead of query_flags. ] Link: https://lore.kernel.org/r/CAHk-=wivmk_j6KbTX+Er64mLrG8abXZo0M10PNdAnHc8fWXfsQ@mail.gmail.com Reported-by: Linus Torvalds <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions