diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2025-01-07 16:18:40 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-01-13 22:58:38 +0300 |
commit | e614a6c52d32c9c7ff545ca842eb2de4aeb1d2d9 (patch) | |
tree | 1846f383297edaff949c804aeaa248ebde263dfa /scripts/gdb/linux/modules.py | |
parent | 4204e3bf63c4b68968fd557f05fed32c99e2b18a (diff) | |
download | linux-e614a6c52d32c9c7ff545ca842eb2de4aeb1d2d9.tar.xz |
bcachefs: make directory i_size meaningful
The isize of directory is 0 in bcachefs if the directory is empty.
With more child dirents created, its size ought to change. Many
other filesystems changed as that (ie. xfs and btrfs). And many of
them changed as the size of child dirent name. Although the directory
size may not seem to convey much, we can still give it some meaning.
The formula of dentry size as follow:
occupied_size = 40 + ALIGN(9 + namelen, 8)
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions