Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87489
b: refs/heads/master
c: 4671181
h: refs/heads/master
i:
  87487: de8df15
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Mar 20, 2008
1 parent 3fa6671 commit 51e2bbb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7682486b3ee06f800d5b11033371c7c5e92e3057
refs/heads/master: 46711810200c50e639ffc52e755b3dba9b4c82a3
25 changes: 10 additions & 15 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,8 @@ static void shmem_free_inode(struct super_block *sb)
}
}

/*
/**
* shmem_recalc_inode - recalculate the size of an inode
*
* @inode: inode to recalc
*
* We have to calculate the free blocks since the mm can drop
Expand All @@ -270,9 +269,8 @@ static void shmem_recalc_inode(struct inode *inode)
}
}

/*
/**
* shmem_swp_entry - find the swap vector position in the info structure
*
* @info: info structure for the inode
* @index: index of the page to find
* @page: optional page to add to the structure. Has to be preset to
Expand Down Expand Up @@ -374,13 +372,13 @@ static void shmem_swp_set(struct shmem_inode_info *info, swp_entry_t *entry, uns
}
}

/*
/**
* shmem_swp_alloc - get the position of the swap entry for the page.
* If it does not exist allocate the entry.
*
* @info: info structure for the inode
* @index: index of the page to find
* @sgp: check and recheck i_size? skip allocation?
*
* If the entry does not exist, allocate it.
*/
static swp_entry_t *shmem_swp_alloc(struct shmem_inode_info *info, unsigned long index, enum sgp_type sgp)
{
Expand Down Expand Up @@ -440,9 +438,8 @@ static swp_entry_t *shmem_swp_alloc(struct shmem_inode_info *info, unsigned long
return entry;
}

/*
/**
* shmem_free_swp - free some swap entries in a directory
*
* @dir: pointer to the directory
* @edir: pointer after last entry of the directory
* @punch_lock: pointer to spinlock when needed for the holepunch case
Expand Down Expand Up @@ -2022,7 +2019,7 @@ static const struct inode_operations shmem_symlink_inode_operations = {
};

#ifdef CONFIG_TMPFS_POSIX_ACL
/**
/*
* Superblocks without xattr inode operations will get security.* xattr
* support from the VFS "for free". As soon as we have any other xattrs
* like ACLs, we also need to implement the security.* handlers at
Expand Down Expand Up @@ -2561,12 +2558,11 @@ static int __init init_tmpfs(void)
}
module_init(init_tmpfs)

/*
/**
* shmem_file_setup - get an unlinked file living in tmpfs
*
* @name: name for dentry (to be seen in /proc/<pid>/maps
* @size: size to be set for the file
*
* @flags: vm_flags
*/
struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
{
Expand Down Expand Up @@ -2621,9 +2617,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
return ERR_PTR(error);
}

/*
/**
* shmem_zero_setup - setup a shared anonymous mapping
*
* @vma: the vma to be mmapped is prepared by do_mmap_pgoff
*/
int shmem_zero_setup(struct vm_area_struct *vma)
Expand Down
8 changes: 3 additions & 5 deletions trunk/mm/tiny-shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ static int __init init_tmpfs(void)
}
module_init(init_tmpfs)

/*
/**
* shmem_file_setup - get an unlinked file living in tmpfs
*
* @name: name for dentry (to be seen in /proc/<pid>/maps
* @size: size to be set for the file
*
* @flags: vm_flags
*/
struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
{
Expand Down Expand Up @@ -95,9 +94,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
return ERR_PTR(error);
}

/*
/**
* shmem_zero_setup - setup a shared anonymous mapping
*
* @vma: the vma to be mmapped is prepared by do_mmap_pgoff
*/
int shmem_zero_setup(struct vm_area_struct *vma)
Expand Down

0 comments on commit 51e2bbb

Please sign in to comment.