diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-03-30 13:41:43 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-04-03 10:23:54 +0300 |
commit | 364595a6851bf64e1c38224ae68f5dd6651906d1 (patch) | |
tree | 65fa876608fb79e96d9928685bffba7a6e172856 /fs/splice.c | |
parent | 4f704d9a8352f5c0a8fcdb6213b934630342bd44 (diff) | |
download | linux-364595a6851bf64e1c38224ae68f5dd6651906d1.tar.xz |
fs: consolidate duplicate dt_type helpers
There are three copies of the same dt_type helper sprinkled around the
tree. Convert them to use the common fs_umode_to_dtype function instead,
which has the added advantage of properly returning DT_UNKNOWN when
given a mode that contains an unrecognized type.
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Phillip Potter <phil@philpotter.co.uk>
Suggested-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Message-Id: <20230330104144.75547-1-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions