Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
31464955
Commit
31464955
authored
Jan 26, 2009
by
Jan Kara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ramfs: Remove quota call
Ramfs has no bussiness in quotas. Signed-off-by:
Jan Kara
<
jack@suse.cz
>
parent
9e3509e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
fs/ramfs/file-nommu.c
fs/ramfs/file-nommu.c
+0
-6
No files found.
fs/ramfs/file-nommu.c
View file @
31464955
...
...
@@ -18,7 +18,6 @@
#include <linux/string.h>
#include <linux/backing-dev.h>
#include <linux/ramfs.h>
#include <linux/quotaops.h>
#include <linux/pagevec.h>
#include <linux/mman.h>
...
...
@@ -205,11 +204,6 @@ static int ramfs_nommu_setattr(struct dentry *dentry, struct iattr *ia)
if
(
ret
)
return
ret
;
/* by providing our own setattr() method, we skip this quotaism */
if
((
old_ia_valid
&
ATTR_UID
&&
ia
->
ia_uid
!=
inode
->
i_uid
)
||
(
old_ia_valid
&
ATTR_GID
&&
ia
->
ia_gid
!=
inode
->
i_gid
))
ret
=
DQUOT_TRANSFER
(
inode
,
ia
)
?
-
EDQUOT
:
0
;
/* pick out size-changing events */
if
(
ia
->
ia_valid
&
ATTR_SIZE
)
{
loff_t
size
=
i_size_read
(
inode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment