Skip to content

Commit

Permalink
升级系统镜像,解决构建问题
Browse files Browse the repository at this point in the history
ubuntu 20.04 -> 22.04
  • Loading branch information
Seshiria committed May 24, 2024
1 parent 57c46f1 commit d0d170d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- ksu-fix
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
- name: Init Repo
Expand Down
10 changes: 5 additions & 5 deletions ksu_patch/fs/readdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
int iterate_dir(struct file *file, struct dir_context *ctx)
{
struct inode *inode = file_inode(file);
bool shared = false;
int res = -ENOTDIR;
if (!file->f_op->iterate)
goto out;
Expand All @@ -33,9 +32,9 @@ int iterate_dir(struct file *file, struct dir_context *ctx)
if (res)
goto out;

res = down_write_killable(&inode->i_rwsem);
if (res)
goto out;
res = mutex_lock_killable(&inode->i_mutex);
if (res)
goto out;

res = -ENOENT;
if (!IS_DEADDIR(inode)) {
Expand All @@ -45,12 +44,13 @@ int iterate_dir(struct file *file, struct dir_context *ctx)
fsnotify_access(file);
file_accessed(file);
}
inode_unlock(inode);
mutex_unlock(&inode->i_mutex);
out:
return res;
}
EXPORT_SYMBOL(iterate_dir);


/*
* POSIX says that a dirent name cannot contain NULL or a '/'.
*
Expand Down

0 comments on commit d0d170d

Please sign in to comment.