Skip to content

Commit bbbd0eb

Browse files
jankaraMark Fasheh
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Fasheh <[email protected]>
1 parent 1a224ad commit bbbd0eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/ocfs2/inode.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,10 @@ void ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe,
275275

276276
inode->i_nlink = le16_to_cpu(fe->i_links_count);
277277

278-
if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL))
278+
if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) {
279279
OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE;
280+
inode->i_flags |= S_NOQUOTA;
281+
}
280282

281283
if (fe->i_flags & cpu_to_le32(OCFS2_LOCAL_ALLOC_FL)) {
282284
OCFS2_I(inode)->ip_flags |= OCFS2_INODE_BITMAP;

0 commit comments

Comments
 (0)