-
Notifications
You must be signed in to change notification settings - Fork 7
use notify prune from upstream #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: redfs-ubuntu-hwe-6.17.0-16.16-24.04.1
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -659,6 +659,27 @@ int fuse_reverse_inval_inode(struct fuse_conn *fc, u64 nodeid, | |
| return 0; | ||
| } | ||
|
|
||
| void fuse_try_prune_one_inode(struct fuse_conn *fc, u64 nodeid) | ||
| { | ||
| struct inode *inode; | ||
| struct dentry *dentry; | ||
|
|
||
| inode = fuse_ilookup(fc, nodeid, NULL); | ||
| if (!inode) | ||
| return; | ||
|
|
||
| if (S_ISDIR(inode->i_mode)) { | ||
| dentry = d_find_alias(inode); | ||
| if (dentry) { | ||
| shrink_dcache_parent(dentry); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But this only remove the children which with ref count is zero? |
||
| dput(dentry); | ||
| } | ||
| } | ||
|
|
||
| d_prune_aliases(inode); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, only when
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we do at the moment ... that's why I left that code in
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think issue with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But the problem with |
||
| iput(inode); | ||
| } | ||
|
|
||
| bool fuse_lock_inode(struct inode *inode) | ||
| { | ||
| bool locked = false; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have libfuse interface for FUSE_NOTIFY_PRUNE ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no ... but we have to start at the kernel ... the libfuse code is in a PR