mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
init: add an init_rmdir helper
Add a simple helper to rmdir with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_rmdir. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -300,7 +300,7 @@ static void __init clean_path(char *path, umode_t fmode)
|
||||
|
||||
if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) {
|
||||
if (S_ISDIR(st.mode))
|
||||
ksys_rmdir(path);
|
||||
init_rmdir(path);
|
||||
else
|
||||
init_unlink(path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user