aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-01-25 15:20:39 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-01-25 15:20:39 +0000
commitd26694243af236fed09a4b38f3cc68e40ad063b5 (patch)
treedf356ae59718ae0996986ccb61155243098dbc3f /target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch
parenta46bb6ec6a0ed6eb56dc2f4551a57e63a7292753 (diff)
downloadupstream-d26694243af236fed09a4b38f3cc68e40ad063b5.tar.gz
upstream-d26694243af236fed09a4b38f3cc68e40ad063b5.tar.bz2
upstream-d26694243af236fed09a4b38f3cc68e40ad063b5.zip
generic: add preliminary 3.19 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 44126
Diffstat (limited to 'target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch')
-rw-r--r--target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch b/target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch
new file mode 100644
index 0000000000..0790003147
--- /dev/null
+++ b/target/linux/generic/patches-3.19/550-ubifs-symlink-xattr-support.patch
@@ -0,0 +1,29 @@
+--- a/fs/ubifs/file.c
++++ b/fs/ubifs/file.c
+@@ -1574,6 +1574,10 @@ const struct inode_operations ubifs_syml
+ .follow_link = ubifs_follow_link,
+ .setattr = ubifs_setattr,
+ .getattr = ubifs_getattr,
++ .setxattr = ubifs_setxattr,
++ .getxattr = ubifs_getxattr,
++ .listxattr = ubifs_listxattr,
++ .removexattr = ubifs_removexattr,
+ };
+
+ const struct file_operations ubifs_file_operations = {
+--- a/fs/ubifs/xattr.c
++++ b/fs/ubifs/xattr.c
+@@ -209,12 +209,12 @@ static int change_xattr(struct ubifs_inf
+ goto out_free;
+ }
+ inode->i_size = ui->ui_size = size;
+- ui->data_len = size;
+
+ mutex_lock(&host_ui->ui_mutex);
+ host->i_ctime = ubifs_current_time(host);
+ host_ui->xattr_size -= CALC_XATTR_BYTES(ui->data_len);
+ host_ui->xattr_size += CALC_XATTR_BYTES(size);
++ ui->data_len = size;
+
+ /*
+ * It is important to write the host inode after the xattr inode