summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2021-12-15 15:19:59 +0300
committerDavid Sterba <dsterba@suse.com>2022-03-14 15:13:46 +0300
commit528ee697126fddaff448897c2d649bd756153c79 (patch)
tree7adee460315dcfc1ff778cdcfc82d862d20d1e2e /fs/btrfs/dev-replace.c
parenta450a4af74331706b51650a0d826720a4da27428 (diff)
downloadlinux-528ee697126fddaff448897c2d649bd756153c79.tar.xz
btrfs: put initial index value of a directory in a constant
At btrfs_set_inode_index_count() we refer twice to the number 2 as the initial index value for a directory (when it's empty), with a proper comment explaining the reason for that value. In the next patch I'll have to use that magic value in the directory logging code, so put the value in a #define at btrfs_inode.h, to avoid hardcoding the magic value again at tree-log.c. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions