diff options
| author | Steve French <sfrench@us.ibm.com> | 2007-11-25 04:53:27 -0500 | 
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2007-11-25 04:53:27 -0500 | 
| commit | 058250a0d5886b4d96a195ecc7e3a75e2df5e4b1 (patch) | |
| tree | fb67e8f5258c6aa11d4e8c39650e23de7556b38d /fs/ext3/ioctl.c | |
| parent | cea218054ad277d6c126890213afde07b4eb1602 (diff) | |
| parent | 2ffbb8377c7a0713baf6644e285adc27a5654582 (diff) | |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/ext3/ioctl.c')
| -rw-r--r-- | fs/ext3/ioctl.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext3/ioctl.c b/fs/ext3/ioctl.c index 4a2a02c95bf9..023a070f55f1 100644 --- a/fs/ext3/ioctl.c +++ b/fs/ext3/ioctl.c  | |||
| @@ -51,6 +51,11 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, | |||
| 51 | flags &= ~EXT3_DIRSYNC_FL; | 51 | flags &= ~EXT3_DIRSYNC_FL; | 
| 52 | 52 | ||
| 53 | mutex_lock(&inode->i_mutex); | 53 | mutex_lock(&inode->i_mutex); | 
| 54 | /* Is it quota file? Do not allow user to mess with it */ | ||
| 55 | if (IS_NOQUOTA(inode)) { | ||
| 56 | mutex_unlock(&inode->i_mutex); | ||
| 57 | return -EPERM; | ||
| 58 | } | ||
| 54 | oldflags = ei->i_flags; | 59 | oldflags = ei->i_flags; | 
| 55 | 60 | ||
| 56 | /* The JOURNAL_DATA flag is modifiable only by root */ | 61 | /* The JOURNAL_DATA flag is modifiable only by root */ | 
