diff options
Diffstat (limited to 'fs/attr.c')
-rw-r--r-- | fs/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -81,7 +81,7 @@ int inode_newsize_ok(const struct inode *inode, loff_t offset) | |||
81 | if (inode->i_size < offset) { | 81 | if (inode->i_size < offset) { |
82 | unsigned long limit; | 82 | unsigned long limit; |
83 | 83 | ||
84 | limit = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; | 84 | limit = rlimit(RLIMIT_FSIZE); |
85 | if (limit != RLIM_INFINITY && offset > limit) | 85 | if (limit != RLIM_INFINITY && offset > limit) |
86 | goto out_sig; | 86 | goto out_sig; |
87 | if (offset > inode->i_sb->s_maxbytes) | 87 | if (offset > inode->i_sb->s_maxbytes) |