diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 08:41:41 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 13:07:53 -0400 |
commit | 816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch) | |
tree | 421fa29aedff988e392f92780637553e275d37a0 /mm/shmem.c | |
parent | 70ac4385a13f78bc478f26d317511893741b05bd (diff) | |
parent | d384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
fs/nfs/inode.c
fs/super.c
Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch
'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 797eef3805ce..38bc3334f263 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1081,14 +1081,6 @@ repeat: | |||
1081 | page_cache_release(swappage); | 1081 | page_cache_release(swappage); |
1082 | goto repeat; | 1082 | goto repeat; |
1083 | } | 1083 | } |
1084 | if (!PageSwapCache(swappage)) { | ||
1085 | /* Page migration has occured */ | ||
1086 | shmem_swp_unmap(entry); | ||
1087 | spin_unlock(&info->lock); | ||
1088 | unlock_page(swappage); | ||
1089 | page_cache_release(swappage); | ||
1090 | goto repeat; | ||
1091 | } | ||
1092 | if (PageWriteback(swappage)) { | 1084 | if (PageWriteback(swappage)) { |
1093 | shmem_swp_unmap(entry); | 1085 | shmem_swp_unmap(entry); |
1094 | spin_unlock(&info->lock); | 1086 | spin_unlock(&info->lock); |
@@ -1654,9 +1646,9 @@ static ssize_t shmem_file_sendfile(struct file *in_file, loff_t *ppos, | |||
1654 | return desc.error; | 1646 | return desc.error; |
1655 | } | 1647 | } |
1656 | 1648 | ||
1657 | static int shmem_statfs(struct super_block *sb, struct kstatfs *buf) | 1649 | static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf) |
1658 | { | 1650 | { |
1659 | struct shmem_sb_info *sbinfo = SHMEM_SB(sb); | 1651 | struct shmem_sb_info *sbinfo = SHMEM_SB(dentry->d_sb); |
1660 | 1652 | ||
1661 | buf->f_type = TMPFS_MAGIC; | 1653 | buf->f_type = TMPFS_MAGIC; |
1662 | buf->f_bsize = PAGE_CACHE_SIZE; | 1654 | buf->f_bsize = PAGE_CACHE_SIZE; |
@@ -2233,10 +2225,10 @@ static struct vm_operations_struct shmem_vm_ops = { | |||
2233 | }; | 2225 | }; |
2234 | 2226 | ||
2235 | 2227 | ||
2236 | static struct super_block *shmem_get_sb(struct file_system_type *fs_type, | 2228 | static int shmem_get_sb(struct file_system_type *fs_type, |
2237 | int flags, const char *dev_name, void *data) | 2229 | int flags, const char *dev_name, void *data, struct vfsmount *mnt) |
2238 | { | 2230 | { |
2239 | return get_sb_nodev(fs_type, flags, data, shmem_fill_super); | 2231 | return get_sb_nodev(fs_type, flags, data, shmem_fill_super, mnt); |
2240 | } | 2232 | } |
2241 | 2233 | ||
2242 | static struct file_system_type tmpfs_fs_type = { | 2234 | static struct file_system_type tmpfs_fs_type = { |