Commit 594ec2a
mm: shmem: add missing shmem_unacct_size() in __shmem_file_setup()
We will miss shmem_unacct_size() when is_idmapped_mnt() returns a failure.
Move is_idmapped_mnt() before shmem_acct_size() to fix the issue.
Link: https://lkml.kernel.org/r/20250516170939.965736-3-shikemeng@huaweicloud.com
Fixes: 7a80e5b ("shmem: support idmapped mounts for tmpfs")
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Kairui Song <kasong@tencent.com>
Cc: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent e08d5f5 commit 594ec2a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5812 | 5812 | | |
5813 | 5813 | | |
5814 | 5814 | | |
5815 | | - | |
5816 | | - | |
5817 | | - | |
5818 | 5815 | | |
5819 | 5816 | | |
5820 | 5817 | | |
| 5818 | + | |
| 5819 | + | |
| 5820 | + | |
5821 | 5821 | | |
5822 | 5822 | | |
5823 | 5823 | | |
| |||
0 commit comments