diff options
author | Jan Kara <jack@suse.cz> | 2008-08-21 12:22:30 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:40:23 -0500 |
commit | bbbd0eb34bf801dee01e345785959a75258f6567 (patch) | |
tree | 04120dd2b08f79d446dd4c4a841ab740e354efab /fs/ocfs2/inode.c | |
parent | 1a224ad11eeb190da4a123e156601aad1bb67f24 (diff) |
ocfs2: Mark system files as not subject to quota accounting
Mark system files as not subject to quota accounting. This prevents
possible recursions into quota code and thus deadlocks.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index ec25d9984192..50dbc486ef71 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -275,8 +275,10 @@ void ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe, | |||
275 | 275 | ||
276 | inode->i_nlink = le16_to_cpu(fe->i_links_count); | 276 | inode->i_nlink = le16_to_cpu(fe->i_links_count); |
277 | 277 | ||
278 | if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) | 278 | if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) { |
279 | OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE; | 279 | OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE; |
280 | inode->i_flags |= S_NOQUOTA; | ||
281 | } | ||
280 | 282 | ||
281 | if (fe->i_flags & cpu_to_le32(OCFS2_LOCAL_ALLOC_FL)) { | 283 | if (fe->i_flags & cpu_to_le32(OCFS2_LOCAL_ALLOC_FL)) { |
282 | OCFS2_I(inode)->ip_flags |= OCFS2_INODE_BITMAP; | 284 | OCFS2_I(inode)->ip_flags |= OCFS2_INODE_BITMAP; |