aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c18
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
1657static int shmem_statfs(struct super_block *sb, struct kstatfs *buf) 1649static 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
2236static struct super_block *shmem_get_sb(struct file_system_type *fs_type, 2228static 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
2242static struct file_system_type tmpfs_fs_type = { 2234static struct file_system_type tmpfs_fs_type = {