]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.suse/ocfs2-Mark-system-files-as-not-subject-to-quota-acc.patch
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / ocfs2-Mark-system-files-as-not-subject-to-quota-acc.patch
1 From: Jan Kara <jack@suse.cz>
2 References: fate#302681
3 Subject: [PATCH 23/28] ocfs2: Mark system files as not subject to quota accounting
4 Patch-mainline: 2.6.29?
5
6 Mark system files as not subject to quota accounting. This prevents
7 possible recursions into quota code and thus deadlocks.
8
9 Signed-off-by: Jan Kara <jack@suse.cz>
10 ---
11 fs/ocfs2/inode.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14 --- a/fs/ocfs2/inode.c
15 +++ b/fs/ocfs2/inode.c
16 @@ -284,8 +284,10 @@ int ocfs2_populate_inode(struct inode *i
17
18 inode->i_nlink = le16_to_cpu(fe->i_links_count);
19
20 - if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL))
21 + if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) {
22 OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SYSTEM_FILE;
23 + inode->i_flags |= S_NOQUOTA;
24 + }
25
26 if (fe->i_flags & cpu_to_le32(OCFS2_LOCAL_ALLOC_FL)) {
27 OCFS2_I(inode)->ip_flags |= OCFS2_INODE_BITMAP;