Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: don't read i_size of inode unless we need it
We always go through i_size_read(), and we rarely end up needing it. Push the read to down where we need to check it, which avoids it for most cases. It looks like we can even remove this check entirely, which might be worth pursuing. But at least this takes it out of the hot path. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]> Acked-by: Chris Mason <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Dave Chinner <[email protected]> Cc: Pavel Begunkov <[email protected]> Cc: Jan Kara <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information