diff options
author | Sage Weil <sage@newdream.net> | 2010-08-23 00:03:56 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-08-23 00:16:46 +0200 |
commit | 4a625be47243e0e07dedd0a1a6b94c66c2ab93ba (patch) | |
tree | 4224efef4f83bcf629934d6da17d2c122b49ba5c /fs/ceph/xattr.c | |
parent | ceph: fix xattr cap writeback (diff) | |
download | linux-4a625be47243e0e07dedd0a1a6b94c66c2ab93ba.tar.xz linux-4a625be47243e0e07dedd0a1a6b94c66c2ab93ba.zip |
ceph: include dirty xattrs state in snapped caps
When we snapshot dirty metadata that needs to be written back to the MDS,
include dirty xattr metadata. Make the capsnap reference the encoded
xattr blob so that it will be written back in the FLUSHSNAP op.
Also fix the capsnap creation guard to include dirty auth or file bits,
not just tests specific to dirty file data or file writes in progress
(this fixes auth metadata writeback).
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 097a2654c00f..9578af610b73 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -485,6 +485,7 @@ void __ceph_build_xattrs_blob(struct ceph_inode_info *ci) ci->i_xattrs.blob = ci->i_xattrs.prealloc_blob; ci->i_xattrs.prealloc_blob = NULL; ci->i_xattrs.dirty = false; + ci->i_xattrs.version++; } } |