summaryrefslogtreecommitdiff
path: root/yaffs_guts.h
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-09-09 09:20:23 +1200
committerCharles Manning <cdhmanning@gmail.com>2010-09-09 09:20:23 +1200
commitde6470acd795b2daab5372dd4a9edce3f186afea (patch)
tree0e136a0e66b52ba05f8804d25fc8bce94de0ace2 /yaffs_guts.h
parent0035e396dc2b872289b8e6320ced59e2eea81962 (diff)
yaffs: Cache object xattrib state.
We cache whether or not an object has xattributes. This is done to get around the problem of the Linux VFS trying to check security capabilities on every write. Assuming that most files don't have security attributes, this code will save on a huge amount of reads and make writing faster. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_guts.h')
-rw-r--r--yaffs_guts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/yaffs_guts.h b/yaffs_guts.h
index f9b5ac1..dea450f 100644
--- a/yaffs_guts.h
+++ b/yaffs_guts.h
@@ -423,6 +423,9 @@ struct yaffs_ObjectStruct {
__u8 beingCreated:1; /* This object is still being created so skip some checks. */
__u8 isShadowed:1; /* This object is shadowed on the way to being renamed. */
+ __u8 xattrKnown:1; /* We know if this has object has xattribs or not. */
+ __u8 hasXattr:1; /* This object has xattribs. Valid if xattrKnown. */
+
__u8 serial; /* serial number of chunk in NAND. Cached here */
__u16 sum; /* sum of the name to speed searching */