Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280251
b: refs/heads/master
c: 09208d1
h: refs/heads/master
i:
  280249: 3bd004b
  280247: f6bbc1b
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 3a0416d commit 66daba7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 881764461165d69814194b6fe97d4352bbd0ae82
refs/heads/master: 09208d150b5cda009b666238a7102cb45ecec2ee
2 changes: 1 addition & 1 deletion trunk/include/linux/shmem_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct shmem_sb_info {
spinlock_t stat_lock; /* Serialize shmem_sb_info changes */
uid_t uid; /* Mount uid for root directory */
gid_t gid; /* Mount gid for root directory */
mode_t mode; /* Mount mode for root directory */
umode_t mode; /* Mount mode for root directory */
struct mempolicy *mpol; /* default memory policy for mappings */
};

Expand Down
6 changes: 3 additions & 3 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ static int shmem_mmap(struct file *file, struct vm_area_struct *vma)
}

static struct inode *shmem_get_inode(struct super_block *sb, const struct inode *dir,
int mode, dev_t dev, unsigned long flags)
umode_t mode, dev_t dev, unsigned long flags)
{
struct inode *inode;
struct shmem_inode_info *info;
Expand Down Expand Up @@ -2128,7 +2128,7 @@ static int shmem_show_options(struct seq_file *seq, struct vfsmount *vfs)
if (sbinfo->max_inodes != shmem_default_max_inodes())
seq_printf(seq, ",nr_inodes=%lu", sbinfo->max_inodes);
if (sbinfo->mode != (S_IRWXUGO | S_ISVTX))
seq_printf(seq, ",mode=%03o", sbinfo->mode);
seq_printf(seq, ",mode=%03ho", sbinfo->mode);
if (sbinfo->uid != 0)
seq_printf(seq, ",uid=%u", sbinfo->uid);
if (sbinfo->gid != 0)
Expand Down Expand Up @@ -2239,7 +2239,7 @@ static void shmem_destroy_callback(struct rcu_head *head)

static void shmem_destroy_inode(struct inode *inode)
{
if ((inode->i_mode & S_IFMT) == S_IFREG)
if (S_ISREG(inode->i_mode))
mpol_free_shared_policy(&SHMEM_I(inode)->policy);
call_rcu(&inode->i_rcu, shmem_destroy_callback);
}
Expand Down

0 comments on commit 66daba7

Please sign in to comment.