From 20cf53f3ac29ddc84025ea0cf893fe1315816e83 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 20 Jan 2013 21:55:30 -0800 Subject: [PATCH] --- yaml --- r: 359621 b: refs/heads/master c: d421acb1ad7dfa31b7463b67f1593714b0b727c3 h: refs/heads/master i: 359619: 6c5c72087967efad9e03fb9b727e3592d9085b5b v: v3 --- [refs] | 2 +- trunk/fs/ceph/xattr.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 469bbb47e456..ea7a3db92363 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3adf654ddbc355c23d75c6684128d4b067a7b792 +refs/heads/master: d421acb1ad7dfa31b7463b67f1593714b0b727c3 diff --git a/trunk/fs/ceph/xattr.c b/trunk/fs/ceph/xattr.c index edc47de77fed..234270f00c2a 100644 --- a/trunk/fs/ceph/xattr.c +++ b/trunk/fs/ceph/xattr.c @@ -892,6 +892,10 @@ int ceph_removexattr(struct dentry *dentry, const char *name) if (vxattr && vxattr->readonly) return -EOPNOTSUPP; + /* pass any unhandled ceph.* xattrs through to the MDS */ + if (!strncmp(name, XATTR_CEPH_PREFIX, XATTR_CEPH_PREFIX_LEN)) + goto do_sync_unlocked; + err = -ENOMEM; spin_lock(&ci->i_ceph_lock); retry: @@ -931,6 +935,7 @@ int ceph_removexattr(struct dentry *dentry, const char *name) return err; do_sync: spin_unlock(&ci->i_ceph_lock); +do_sync_unlocked: err = ceph_send_removexattr(dentry, name); out: return err;