diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-10 14:26:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-10 14:26:52 -0400 |
commit | 5f248c9c251c60af3403902b26e08de43964ea0b (patch) | |
tree | 6d3328e72a7e4015a64017eb30be18095c6a3c64 /fs/afs | |
parent | f6cec0ae58c17522a7bc4e2f39dae19f199ab534 (diff) | |
parent | dca332528bc69e05f67161e1ed59929633d5e63d (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (96 commits)
no need for list_for_each_entry_safe()/resetting with superblock list
Fix sget() race with failing mount
vfs: don't hold s_umount over close_bdev_exclusive() call
sysv: do not mark superblock dirty on remount
sysv: do not mark superblock dirty on mount
btrfs: remove junk sb_dirt change
BFS: clean up the superblock usage
AFFS: wait for sb synchronization when needed
AFFS: clean up dirty flag usage
cifs: truncate fallout
mbcache: fix shrinker function return value
mbcache: Remove unused features
add f_flags to struct statfs(64)
pass a struct path to vfs_statfs
update VFS documentation for method changes.
All filesystems that need invalidate_inode_buffers() are doing that explicitly
convert remaining ->clear_inode() to ->evict_inode()
Make ->drop_inode() just return whether inode needs to be dropped
fs/inode.c:clear_inode() is gone
fs/inode.c:evict() doesn't care about delete vs. non-delete paths now
...
Fix up trivial conflicts in fs/nilfs2/super.c
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/inode.c | 5 | ||||
-rw-r--r-- | fs/afs/internal.h | 2 | ||||
-rw-r--r-- | fs/afs/super.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/fs/afs/inode.c b/fs/afs/inode.c index d00b312e3110..320ffef11574 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c | |||
@@ -316,7 +316,7 @@ int afs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
316 | /* | 316 | /* |
317 | * clear an AFS inode | 317 | * clear an AFS inode |
318 | */ | 318 | */ |
319 | void afs_clear_inode(struct inode *inode) | 319 | void afs_evict_inode(struct inode *inode) |
320 | { | 320 | { |
321 | struct afs_permits *permits; | 321 | struct afs_permits *permits; |
322 | struct afs_vnode *vnode; | 322 | struct afs_vnode *vnode; |
@@ -335,6 +335,9 @@ void afs_clear_inode(struct inode *inode) | |||
335 | 335 | ||
336 | ASSERTCMP(inode->i_ino, ==, vnode->fid.vnode); | 336 | ASSERTCMP(inode->i_ino, ==, vnode->fid.vnode); |
337 | 337 | ||
338 | truncate_inode_pages(&inode->i_data, 0); | ||
339 | end_writeback(inode); | ||
340 | |||
338 | afs_give_up_callback(vnode); | 341 | afs_give_up_callback(vnode); |
339 | 342 | ||
340 | if (vnode->server) { | 343 | if (vnode->server) { |
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index 5f679b77ce24..8679089ce9a1 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h | |||
@@ -565,7 +565,7 @@ extern void afs_zap_data(struct afs_vnode *); | |||
565 | extern int afs_validate(struct afs_vnode *, struct key *); | 565 | extern int afs_validate(struct afs_vnode *, struct key *); |
566 | extern int afs_getattr(struct vfsmount *, struct dentry *, struct kstat *); | 566 | extern int afs_getattr(struct vfsmount *, struct dentry *, struct kstat *); |
567 | extern int afs_setattr(struct dentry *, struct iattr *); | 567 | extern int afs_setattr(struct dentry *, struct iattr *); |
568 | extern void afs_clear_inode(struct inode *); | 568 | extern void afs_evict_inode(struct inode *); |
569 | 569 | ||
570 | /* | 570 | /* |
571 | * main.c | 571 | * main.c |
diff --git a/fs/afs/super.c b/fs/afs/super.c index e932e5a3a0c1..9cf80f02da16 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -49,7 +49,7 @@ static const struct super_operations afs_super_ops = { | |||
49 | .statfs = afs_statfs, | 49 | .statfs = afs_statfs, |
50 | .alloc_inode = afs_alloc_inode, | 50 | .alloc_inode = afs_alloc_inode, |
51 | .destroy_inode = afs_destroy_inode, | 51 | .destroy_inode = afs_destroy_inode, |
52 | .clear_inode = afs_clear_inode, | 52 | .evict_inode = afs_evict_inode, |
53 | .put_super = afs_put_super, | 53 | .put_super = afs_put_super, |
54 | .show_options = generic_show_options, | 54 | .show_options = generic_show_options, |
55 | }; | 55 | }; |