diff options
author | Christoph Hellwig | 2020-06-06 10:49:35 +0200 |
---|---|---|
committer | Christoph Hellwig | 2020-07-16 15:34:42 +0200 |
commit | 881627f353754dd05a8f3e1c1941f0dbbf47a170 (patch) | |
tree | 9544cb47ae7ee8a413cbf9da8ce236b14ec9167e /init/do_mounts.h | |
parent | 9e96c8c0e94eea2f69a9705f5d0f51928ea26c17 (diff) |
init: remove the bstat helper
The only caller of the bstat function becomes cleaner and simpler when
open coding the function.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: NeilBrown <neilb@suse.de>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/do_mounts.h')
-rw-r--r-- | init/do_mounts.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/init/do_mounts.h b/init/do_mounts.h index 0bb0806de4ce..7513d1c14d13 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -20,16 +20,6 @@ static inline int create_dev(char *name, dev_t dev) return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); } -static inline u32 bstat(char *name) -{ - struct kstat stat; - if (vfs_stat(name, &stat) != 0) - return 0; - if (!S_ISBLK(stat.mode)) - return 0; - return stat.rdev; -} - #ifdef CONFIG_BLK_DEV_RAM int __init rd_load_disk(int n); |