diff options
author | Hugh Dickins <[email protected]> | 2023-08-08 21:32:21 -0700 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-08-09 09:15:51 +0200 |
commit | e07c469e979c104464300aaa3b7923f929055cd0 (patch) | |
tree | b699387289ca70f89dc86f78753d0a4c61cbc803 /drivers/fpga/xilinx-selectmap.c | |
parent | 5de75970c9fd7220e394b76e6d20fbafa1369b5a (diff) |
tmpfs: track free_ispace instead of free_inodes
In preparation for assigning some inode space to extended attributes,
keep track of free_ispace instead of number of free_inodes: as if one
tmpfs inode (and accompanying dentry) occupies very approximately 1KiB.
Unsigned long is large enough for free_ispace, on 64-bit and on 32-bit:
but take care to enforce the maximum. And fix the nr_blocks maximum on
32-bit: S64_MAX would be too big for it there, so say LONG_MAX instead.
Delete the incorrect limited<->unlimited blocks/inodes comment above
shmem_reconfigure(): leave it to the error messages below to describe.
Signed-off-by: Hugh Dickins <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-selectmap.c')
0 files changed, 0 insertions, 0 deletions