diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-01-02 10:09:37 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-01-02 10:09:37 +0800 |
| commit | 1c8e37f63d413a559825020289178d442537449e (patch) | |
| tree | 9779a712b5eec91035272e7646eb6811979d7eab /src/fs/fs.cc | |
| parent | d8eaa13f2efc1eeca4e5f230d5a2d535aaf27338 (diff) | |
| download | lume-1c8e37f63d413a559825020289178d442537449e.tar.gz lume-1c8e37f63d413a559825020289178d442537449e.tar.xz | |
dev(sell): add simple libc and implement shell
please see the log for detail.
Diffstat (limited to 'src/fs/fs.cc')
| -rw-r--r-- | src/fs/fs.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/fs.cc b/src/fs/fs.cc index b2b91c2..c5a34ee 100644 --- a/src/fs/fs.cc +++ b/src/fs/fs.cc @@ -111,8 +111,10 @@ namespace VFS ip->lock.release(); } - static void iunlockput(Inode *ip) + void iunlockput(Inode *ip) { + if (!ip) + return; iunlock(ip); iput(ip); } |
