⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ext3-ea-expand-lose-block.patch

📁 lustre 1.6.5 source code
💻 PATCH
字号:
Date: Mon, 12 May 2008 11:24:40 +0800From: Tiger Yang <tiger.yang@oracle.com>Subject: [PATCH] ext3/4: fix uninitialized bs in ext3/4_xattr_set_handle()To: linux-ext4@vger.kernel.orgCc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.orgThis fix the uninitialized bs when we try to replace a xattr entry in ibodywith the new value which require more than free space.Signed-off-by: Tiger Yang <tiger.yang@oracle.com>diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c--- a/fs/ext3/xattr.c+++ b/fs/ext3/xattr.c@@ -1000,6 +1000,11 @@ ext3_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index, 			i.value = NULL; 			error = ext3_xattr_block_set(handle, inode, &i, &bs); 		} else if (error == -ENOSPC) {+			if (EXT3_I(inode)->i_file_acl && !bs.s.base) {+				error = ext3_xattr_block_find(inode, &i, &bs);+				if (error)+					goto cleanup;+			} 			error = ext3_xattr_block_set(handle, inode, &i, &bs); 			if (error) 				goto cleanup;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -