projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ceph: fix cap removal races
[linux-2.6-block.git]
/
fs
/
attr.c
diff --git
a/fs/attr.c
b/fs/attr.c
index 0a6ea54cde7d6734ce3d61a3f8cbd01345a6e836..0815e93bb487e0651619d942b6bd78d7fe6a2e89 100644
(file)
--- a/
fs/attr.c
+++ b/
fs/attr.c
@@
-81,7
+81,7
@@
int inode_newsize_ok(const struct inode *inode, loff_t offset)
if (inode->i_size < offset) {
unsigned long limit;
- limit =
current->signal->rlim[RLIMIT_FSIZE].rlim_cur
;
+ limit =
rlimit(RLIMIT_FSIZE)
;
if (limit != RLIM_INFINITY && offset > limit)
goto out_sig;
if (offset > inode->i_sb->s_maxbytes)