Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-16044 osd: discard pagecache in truncate's declaration
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_handler.c
diff --git
a/lustre/osd-ldiskfs/osd_handler.c
b/lustre/osd-ldiskfs/osd_handler.c
index
a3bbd15
..
661690a
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_handler.c
+++ b/
lustre/osd-ldiskfs/osd_handler.c
@@
-2899,6
+2899,10
@@
static int osd_declare_attr_set(const struct lu_env *env,
RETURN(rc);
}
#endif
+ /* punch must be aware we are dealing with an encrypted file */
+ if (attr->la_valid & LA_FLAGS && attr->la_flags & LUSTRE_ENCRYPT_FL)
+ obj->oo_lma_flags |= LUSTRE_ENCRYPT_FL;
+
RETURN(rc);
}