mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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
This commit is contained in:
commit
5f248c9c25
205 changed files with 2584 additions and 2475 deletions
|
|
@ -43,7 +43,7 @@
|
|||
#define NCP_DEFAULT_TIME_OUT 10
|
||||
#define NCP_DEFAULT_RETRY_COUNT 20
|
||||
|
||||
static void ncp_delete_inode(struct inode *);
|
||||
static void ncp_evict_inode(struct inode *);
|
||||
static void ncp_put_super(struct super_block *);
|
||||
static int ncp_statfs(struct dentry *, struct kstatfs *);
|
||||
static int ncp_show_options(struct seq_file *, struct vfsmount *);
|
||||
|
|
@ -100,7 +100,7 @@ static const struct super_operations ncp_sops =
|
|||
.alloc_inode = ncp_alloc_inode,
|
||||
.destroy_inode = ncp_destroy_inode,
|
||||
.drop_inode = generic_delete_inode,
|
||||
.delete_inode = ncp_delete_inode,
|
||||
.evict_inode = ncp_evict_inode,
|
||||
.put_super = ncp_put_super,
|
||||
.statfs = ncp_statfs,
|
||||
.remount_fs = ncp_remount,
|
||||
|
|
@ -282,19 +282,19 @@ ncp_iget(struct super_block *sb, struct ncp_entry_info *info)
|
|||
}
|
||||
|
||||
static void
|
||||
ncp_delete_inode(struct inode *inode)
|
||||
ncp_evict_inode(struct inode *inode)
|
||||
{
|
||||
truncate_inode_pages(&inode->i_data, 0);
|
||||
end_writeback(inode);
|
||||
|
||||
if (S_ISDIR(inode->i_mode)) {
|
||||
DDPRINTK("ncp_delete_inode: put directory %ld\n", inode->i_ino);
|
||||
DDPRINTK("ncp_evict_inode: put directory %ld\n", inode->i_ino);
|
||||
}
|
||||
|
||||
if (ncp_make_closed(inode) != 0) {
|
||||
/* We can't do anything but complain. */
|
||||
printk(KERN_ERR "ncp_delete_inode: could not close\n");
|
||||
printk(KERN_ERR "ncp_evict_inode: could not close\n");
|
||||
}
|
||||
clear_inode(inode);
|
||||
}
|
||||
|
||||
static void ncp_stop_tasks(struct ncp_server *server) {
|
||||
|
|
@ -924,9 +924,8 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
|
|||
tmpattr.ia_valid = ATTR_MODE;
|
||||
tmpattr.ia_mode = attr->ia_mode;
|
||||
|
||||
result = inode_setattr(inode, &tmpattr);
|
||||
if (result)
|
||||
goto out;
|
||||
setattr_copy(inode, &tmpattr);
|
||||
mark_inode_dirty(inode);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
@ -954,15 +953,12 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
|
|||
result = ncp_make_closed(inode);
|
||||
if (result)
|
||||
goto out;
|
||||
{
|
||||
struct iattr tmpattr;
|
||||
|
||||
tmpattr.ia_valid = ATTR_SIZE;
|
||||
tmpattr.ia_size = attr->ia_size;
|
||||
|
||||
result = inode_setattr(inode, &tmpattr);
|
||||
|
||||
if (attr->ia_size != i_size_read(inode)) {
|
||||
result = vmtruncate(inode, attr->ia_size);
|
||||
if (result)
|
||||
goto out;
|
||||
mark_inode_dirty(inode);
|
||||
}
|
||||
}
|
||||
if ((attr->ia_valid & ATTR_CTIME) != 0) {
|
||||
|
|
@ -1002,8 +998,12 @@ int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
|
|||
NCP_FINFO(inode)->nwattr = info.attributes;
|
||||
#endif
|
||||
}
|
||||
if (!result)
|
||||
result = inode_setattr(inode, attr);
|
||||
if (result)
|
||||
goto out;
|
||||
|
||||
setattr_copy(inode, attr);
|
||||
mark_inode_dirty(inode);
|
||||
|
||||
out:
|
||||
unlock_kernel();
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue