projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert remaining ->clear_inode() to ->evict_inode()
[linux-block.git]
/
fs
/
afs
/
inode.c
diff --git
a/fs/afs/inode.c
b/fs/afs/inode.c
index d00b312e31108c8a4477e168f445982cd5e30743..320ffef115746362defa94edef14b3a083df64ae 100644
(file)
--- a/
fs/afs/inode.c
+++ b/
fs/afs/inode.c
@@
-316,7
+316,7
@@
int afs_getattr(struct vfsmount *mnt, struct dentry *dentry,
/*
* clear an AFS inode
*/
/*
* clear an AFS inode
*/
-void afs_
clear
_inode(struct inode *inode)
+void afs_
evict
_inode(struct inode *inode)
{
struct afs_permits *permits;
struct afs_vnode *vnode;
{
struct afs_permits *permits;
struct afs_vnode *vnode;
@@
-335,6
+335,9
@@
void afs_clear_inode(struct inode *inode)
ASSERTCMP(inode->i_ino, ==, vnode->fid.vnode);
ASSERTCMP(inode->i_ino, ==, vnode->fid.vnode);
+ truncate_inode_pages(&inode->i_data, 0);
+ end_writeback(inode);
+
afs_give_up_callback(vnode);
if (vnode->server) {
afs_give_up_callback(vnode);
if (vnode->server) {