ext4: rename "dirent_csum" functions to use "dirblock"
authorTheodore Ts'o <tytso@mit.edu>
Fri, 21 Jun 2019 19:49:26 +0000 (15:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Jun 2019 19:49:26 +0000 (15:49 -0400)
commitf036adb39976467cf57f577490269594994f9eb4
tree26e5148f7e5e23ef833d58d630538ddddf57a5ff
parent4e19d6b65fb4fc42e352ce9883649e049da14743
ext4: rename "dirent_csum" functions to use "dirblock"

Functions such as ext4_dirent_csum_verify() and ext4_dirent_csum_set()
don't actually operate on a directory entry, but a directory block.
And while they take a struct ext4_dir_entry *dirent as an argument, it
had better be the first directory at the beginning of the direct
block, or things will go very wrong.

Rename the following functions so that things make more sense, and
remove a lot of confusing casts along the way:

   ext4_dirent_csum_verify  -> ext4_dirblock_csum_verify
   ext4_dirent_csum_set  -> ext4_dirblock_csum_set
   ext4_dirent_csum  -> ext4_dirblock_csum
   ext4_handle_dirty_dirent_node -> ext4_handle_dirty_dirblock

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/inline.c
fs/ext4/namei.c